-
- Metric:
-
- {getMetricName(metric)}
+ {truncateValue('', getMetricName(metric), 39)}
{filters.map((f) => (
@@ -76,12 +72,6 @@ export function DataTrailCard(props: Props) {
))}
-
-
- Data source:
-
-
{dsValue && getDataSourceName(dsValue)}
-
{onDelete && (
@@ -124,7 +114,6 @@ export function getStyles(theme: GrafanaTheme2) {
fontSize: '14px',
fontStyle: 'normal',
fontWeight: 500,
- marginLeft: '8px', // Add space between the label and the value
wordBreak: 'break-all',
}),
tag: css({
@@ -136,7 +125,7 @@ export function getStyles(theme: GrafanaTheme2) {
position: 'relative',
width: '318px',
padding: `12px ${theme.spacing(2)} ${theme.spacing(1)} ${theme.spacing(2)}`,
- height: '152px',
+ height: '110px',
alignItems: 'start',
marginBottom: 0,
borderTop: `1px solid ${theme.colors.border.weak}`,
@@ -150,9 +139,6 @@ export function getStyles(theme: GrafanaTheme2) {
color: theme.colors.text.secondary,
fontSize: '12px',
}),
- datasource: css({
- gridArea: 'Description',
- }),
date: css({
border: `1px solid ${theme.colors.border.weak}`,
// eslint-disable-next-line @grafana/no-border-radius-literal
@@ -164,8 +150,7 @@ export function getStyles(theme: GrafanaTheme2) {
flexWrap: 'wrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
- maxHeight: '54px',
- width: '100%',
+ maxHeight: '36px', // 2 lines * 18px line-height
margin: 0,
gridArea: 'Meta',
color: theme.colors.text.secondary,
diff --git a/public/app/features/trails/DataTrailsHome.tsx b/public/app/features/trails/DataTrailsHome.tsx
index fd9abab0bf4..479e9e6d5e3 100644
--- a/public/app/features/trails/DataTrailsHome.tsx
+++ b/public/app/features/trails/DataTrailsHome.tsx
@@ -111,9 +111,8 @@ function getStyles(theme: GrafanaTheme2) {
}),
homepageBox: css({
backgroundColor: theme.colors.background.secondary,
- width: '725px',
- height: '294px',
- padding: '40px 32px',
+ width: '904px',
+ padding: '80px 32px',
boxSizing: 'border-box', // Ensure padding doesn't cause overflow
flexShrink: 0,
}),
diff --git a/public/app/features/trails/utils.ts b/public/app/features/trails/utils.ts
index 4045fffba3d..758f560edfb 100644
--- a/public/app/features/trails/utils.ts
+++ b/public/app/features/trails/utils.ts
@@ -83,7 +83,7 @@ export function getDataSourceName(dataSourceUid: string) {
export function getMetricName(metric?: string) {
if (!metric) {
- return 'Select metric';
+ return 'All metrics';
}
if (metric === LOGS_METRIC) {
diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json
index 3aca6723ded..bf8c92baf02 100644
--- a/public/locales/en-US/grafana.json
+++ b/public/locales/en-US/grafana.json
@@ -3229,9 +3229,7 @@
"or-view-bookmarks": "Or view bookmarks"
},
"card": {
- "data-source": "Data source: ",
- "date-created": "Date created: ",
- "metric": "Metric:"
+ "date-created": "Date created: "
},
"home": {
"learn-more": "Learn more",
diff --git a/public/locales/pseudo-LOCALE/grafana.json b/public/locales/pseudo-LOCALE/grafana.json
index 71c193eb5b1..b6d68de3c92 100644
--- a/public/locales/pseudo-LOCALE/grafana.json
+++ b/public/locales/pseudo-LOCALE/grafana.json
@@ -3229,9 +3229,7 @@
"or-view-bookmarks": "Øř vįęŵ þőőĸmäřĸş"
},
"card": {
- "data-source": "Đäŧä şőūřčę: ",
- "date-created": "Đäŧę čřęäŧęđ: ",
- "metric": "Męŧřįč:"
+ "date-created": "Đäŧę čřęäŧęđ: "
},
"home": {
"learn-more": "Ŀęäřʼn mőřę",