diff --git a/public/app/features/dashboard-scene/panel-edit/PanelDataPane/QueryTransformCard.tsx b/public/app/features/dashboard-scene/panel-edit/PanelDataPane/QueryTransformCard.tsx index 4e803bde5bc..96875b5da1d 100644 --- a/public/app/features/dashboard-scene/panel-edit/PanelDataPane/QueryTransformCard.tsx +++ b/public/app/features/dashboard-scene/panel-edit/PanelDataPane/QueryTransformCard.tsx @@ -133,50 +133,56 @@ export const QueryTransformCard = memo( {typeLabel} - +
+
+ {(type === 'query' || type === 'expression') && onDuplicate && ( + handleAction(e, onDuplicate)} + className={styles.actionButton} + /> + )} + {onRemove && ( + handleAction(e, onRemove)} + className={styles.actionButton} + /> + )} +
{onToggleVisibility && ( - handleAction(e, onToggleVisibility)} - className={styles.actionButton} - /> +
+ handleAction(e, onToggleVisibility)} + className={styles.actionButton} + /> +
)} - {(type === 'query' || type === 'expression') && onDuplicate && ( - handleAction(e, onDuplicate)} - className={styles.actionButton} - /> - )} - {onRemove && ( - handleAction(e, onRemove)} - className={styles.actionButton} - /> - )} - +
{/* Content: Name */} @@ -198,6 +204,7 @@ QueryTransformCard.displayName = 'QueryTransformCard'; const getStyles = (theme: GrafanaTheme2, colors: ReturnType) => { const selectedClass = 'card-selected'; const hiddenClass = 'card-hidden'; + const hoverOnlyClass = 'hover-only'; return { card: css({ @@ -212,6 +219,9 @@ const getStyles = (theme: GrafanaTheme2, colors: ReturnType