{type === 'query' && datasourceIcon && (
)}
@@ -158,6 +158,8 @@ const getStyles = (theme: GrafanaTheme2) => {
overflow: 'hidden',
background: theme.colors.background.primary,
width: '100%',
+ minWidth: 180,
+ maxWidth: 240,
'&:hover': {
borderColor: theme.colors.border.strong,
},
@@ -179,7 +181,7 @@ const getStyles = (theme: GrafanaTheme2) => {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
- padding: theme.spacing(1, 1.5),
+ padding: theme.spacing(0.5),
background: theme.colors.primary.transparent,
borderBottom: `1px solid ${theme.colors.border.weak}`,
}),
@@ -187,7 +189,7 @@ const getStyles = (theme: GrafanaTheme2) => {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
- padding: theme.spacing(1, 1.5),
+ padding: theme.spacing(0.5),
background: theme.isDark
? `${theme.visualization.getColorByName('orange')}20`
: `${theme.visualization.getColorByName('orange')}15`,
@@ -197,7 +199,7 @@ const getStyles = (theme: GrafanaTheme2) => {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
- padding: theme.spacing(1, 1.5),
+ padding: theme.spacing(0.5),
background: theme.isDark
? `${theme.visualization.getColorByName('purple')}20`
: `${theme.visualization.getColorByName('purple')}15`,
@@ -206,7 +208,7 @@ const getStyles = (theme: GrafanaTheme2) => {
headerLeft: css({
display: 'flex',
alignItems: 'center',
- gap: theme.spacing(1),
+ gap: theme.spacing(0.5),
flex: 1,
minWidth: 0,
}),
@@ -217,10 +219,8 @@ const getStyles = (theme: GrafanaTheme2) => {
typeLabel: css({
fontFamily: "'CommitMono', monospace",
fontSize: theme.typography.bodySmall.fontSize,
- fontWeight: theme.typography.fontWeightMedium,
- color: theme.colors.text.secondary,
+ color: theme.colors.text.maxContrast,
textTransform: 'uppercase',
- letterSpacing: '0.05em',
}),
actionButton: css({
'&:hover': {
@@ -237,9 +237,11 @@ const getStyles = (theme: GrafanaTheme2) => {
}),
name: css({
fontFamily: "'CommitMono', monospace",
- fontSize: theme.typography.body.fontSize,
- fontWeight: theme.typography.fontWeightMedium,
- color: theme.colors.text.primary,
+ fontSize: theme.typography.bodySmall.fontSize,
+ color: theme.colors.text.maxContrast,
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap',
}),
};
};
diff --git a/public/app/features/dashboard-scene/panel-edit/PanelDataPane/QueryTransformList.tsx b/public/app/features/dashboard-scene/panel-edit/PanelDataPane/QueryTransformList.tsx
index 2078d957a15..9b558a56002 100644
--- a/public/app/features/dashboard-scene/panel-edit/PanelDataPane/QueryTransformList.tsx
+++ b/public/app/features/dashboard-scene/panel-edit/PanelDataPane/QueryTransformList.tsx
@@ -174,15 +174,15 @@ export const QueryTransformList = memo(
- {stats.totalCards} {t('dashboard-scene.query-transform-list.nodes-total', 'nodes total')}
+ {stats.totalCards} {t('dashboard-scene.query-transform-list.nodes', 'nodes')}
- {t('dashboard-scene.query-transform-list.visible-queries', 'Visible')}: {stats.visibleQueries}
+ {stats.visibleQueries}
- {t('dashboard-scene.query-transform-list.hidden-queries', 'Hidden')}: {stats.hiddenQueries}
+ {stats.hiddenQueries}
@@ -211,7 +211,6 @@ const getStyles = (theme: GrafanaTheme2) => {
display: 'flex',
flexDirection: 'column',
height: '100%',
- width: '100%',
overflow: 'hidden',
border: `1px solid ${theme.colors.border.weak}`,
}),
diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json
index a412bcf06d7..580e3ac2f79 100644
--- a/public/locales/en-US/grafana.json
+++ b/public/locales/en-US/grafana.json
@@ -6278,9 +6278,7 @@
},
"query-transform-list": {
"header": "Pipeline flow",
- "hidden-queries": "Hidden",
- "nodes-total": "nodes total",
- "visible-queries": "Visible"
+ "nodes": "nodes"
},
"query-variable-editor-form": {
"description-examples": "Named capture groups can be used to separate the display text and value (<1>see examples1> ).",