diff --git a/src/components/Toolbar.tsx b/src/components/Toolbar.tsx index a03f528..56d9fd6 100644 --- a/src/components/Toolbar.tsx +++ b/src/components/Toolbar.tsx @@ -393,15 +393,18 @@ export const Toolbar: React.FC = ({ onGenerateClick }) => { return (
- {/* Main toolbar */} -
- {/* Logo - matches sidebar width (w-56 = 224px) */} -
- -
- FormForge - + {/* Toolbar: each column contains icons (top) + group label (bottom), ensuring structural alignment */} +
+ {/* Logo column — same two-row height as groups */} +
+
+ +
+ FormForge + +
+
{/* File Management */} @@ -414,7 +417,7 @@ export const Toolbar: React.FC = ({ onGenerateClick }) => { -
+ {/* Edit */} @@ -427,10 +430,10 @@ export const Toolbar: React.FC = ({ onGenerateClick }) => { -
+ {/* Tools */} - + = ({ onGenerateClick }) => { {/* Spacer */} -
+
+
+
+
{/* View */} @@ -507,23 +513,29 @@ export const Toolbar: React.FC = ({ onGenerateClick }) => {
)} - {/* Section labels */} -
-
{/* Logo space - matches sidebar width */} - File Management - Edit - Tools -
- View -
); }; -// Toolbar Group -const ToolbarGroup: React.FC<{ label: string; children: React.ReactNode }> = ({ children }) => ( -
- {children} +// Toolbar Group — flex-col so the label is structurally coupled to its icon row +const ToolbarGroup: React.FC<{ label: string; labelClassName?: string; children: React.ReactNode }> = ({ label, labelClassName, children }) => ( +
+
+ {children} +
+
+ {label} +
+
+); + +// Toolbar Separator — two-row column matching ToolbarGroup height +const ToolbarSeparator: React.FC = () => ( +
+
+
+
+
);