From 0f46e9322f9874ffc792d3e6199c80ac11e52d45 Mon Sep 17 00:00:00 2001 From: Dmytro Stanchiev Date: Wed, 8 Apr 2026 01:50:06 -0400 Subject: [PATCH] refactor: mobile-first AI toolbar layout --- src/components/ai-toolbar.tsx | 87 +++++++++++++++++++---------------- 1 file changed, 47 insertions(+), 40 deletions(-) diff --git a/src/components/ai-toolbar.tsx b/src/components/ai-toolbar.tsx index 6e711a0..91c5aed 100644 --- a/src/components/ai-toolbar.tsx +++ b/src/components/ai-toolbar.tsx @@ -78,7 +78,8 @@ export const AIToolbar = ({ {/* AI command — only shown when authenticated */} {isAuthenticated ? ( <> -
+ {/* Textarea fills full width; action icons sit below on mobile, to the right on sm+ */} +
@@ -121,7 +122,9 @@ export const AIToolbar = ({ )}
-
+ + {/* On mobile: horizontal row below textarea. On sm+: vertical column beside textarea */} +
- + {/* On mobile: two rows — actions top, meta (badge + summarize) below */} + {/* On sm+: single row with meta pushed to the right */} +
+
+ - - - Import - + + + Import + - {events.length > 0 && ( - <> - - - - )} + {events.length > 0 && ( + <> + + + + )} +
-
+
{events.length > 0 && ( {events.length} event{events.length !== 1 ? "s" : ""} @@ -211,7 +218,7 @@ export const AIToolbar = ({ disabled={aiLoading} className="text-xs h-7" > - + {aiLoading ? "Summarizing..." : "Summarize"} )}