From 237b9d96c64c41e679475b5c1d8f4ca94adb5405 Mon Sep 17 00:00:00 2001 From: stroblme Date: Mon, 12 Oct 2026 22:02:35 +0200 Subject: [PATCH] Button icon-touch/sm-touch sizes replace the repeated touch-target classes --- .../src/components/Common/OverviewToolbar.tsx | 20 ++++------ .../components/Dashboard/DashboardEditor.tsx | 27 +++++++------- .../src/components/Dashboard/PanelsDialog.tsx | 7 +--- frontend/src/components/Flow/FlowDock.tsx | 37 ++++++++----------- frontend/src/components/Flow/LogsPanel.tsx | 7 +--- frontend/src/components/ui/button.tsx | 4 ++ .../src/routes/_layout/dashboards/index.tsx | 4 +- frontend/src/routes/panel.index.tsx | 4 +- 8 files changed, 49 insertions(+), 61 deletions(-) diff --git a/frontend/src/components/Common/OverviewToolbar.tsx b/frontend/src/components/Common/OverviewToolbar.tsx index 45a9e8a..b0c8d05 100644 --- a/frontend/src/components/Common/OverviewToolbar.tsx +++ b/frontend/src/components/Common/OverviewToolbar.tsx @@ -22,10 +22,6 @@ import { } from "@/components/ui/tooltip" import useCustomToast from "@/hooks/useCustomToast" import { transitions } from "@/lib/motion" -import { cn } from "@/lib/utils" - -/** The icon buttons here and in the flow dock are the same touch target. */ -const ICON = "size-11 text-muted-foreground md:size-8" /** * The bar over the flows and dashboards lists: find one, publish what is @@ -113,8 +109,8 @@ export function OverviewToolbar({