diff --git a/src/renderer/components/shared/settings/SettingsModal.tsx b/src/renderer/components/shared/settings/SettingsModal.tsx index 0afcf410..53730d6f 100644 --- a/src/renderer/components/shared/settings/SettingsModal.tsx +++ b/src/renderer/components/shared/settings/SettingsModal.tsx @@ -1,7 +1,6 @@ import { Dialog, DialogContent, - DialogFooter, DialogHeader, DialogTitle, DialogTrigger, @@ -67,39 +66,45 @@ export const SettingsModal = () => { - -
+ + {/* Header - Fixed */} -
+
- Collection Settings + + Collection Settings + + + + Variables + + + Environments + +
{/* Tabs - Takes remaining space */} - -
- - - Variables - - - Environments - - -
- -
- -
-
+ +
+ +
+
- + +
{ onEnvironmentSelect={setEditorSelectedEnvironment} onValidChange={setEnvironmentValid} /> - - - - {/* Footer - Fixed */} - -
- -
-
-
+
+
+ +
+
); diff --git a/src/renderer/components/shared/settings/VariableTab/VariableEditor.tsx b/src/renderer/components/shared/settings/VariableTab/VariableEditor.tsx index a35abf69..5691de85 100644 --- a/src/renderer/components/shared/settings/VariableTab/VariableEditor.tsx +++ b/src/renderer/components/shared/settings/VariableTab/VariableEditor.tsx @@ -78,80 +78,96 @@ export const VariableEditor = memo( return ( <> - +
- - - - Key - Value - Description - Secret - {/* Action Column */} - - - - {variables.map((variable, index) => ( - - - update(index, { key: e.target.value })} - /> - - - update(index, { value: e.target.value })} - /> - - - update(index, { description: e.target.value })} - /> - - - update(index, { secret: Boolean(checked) })} - /> - - - - +
+
+ + + + Key + + + Value + + + Description + + + Secret + + + {/* Action Column */} + - ))} - -
+ + + {variables.map((variable, index) => ( + + + update(index, { key: e.target.value })} + /> + + + update(index, { value: e.target.value })} + /> + + + update(index, { description: e.target.value })} + /> + + + update(index, { secret: Boolean(checked) })} + /> + + + + + + ))} + + +
); } diff --git a/src/renderer/components/ui/table.tsx b/src/renderer/components/ui/table.tsx index b8b8e824..a39c82e8 100644 --- a/src/renderer/components/ui/table.tsx +++ b/src/renderer/components/ui/table.tsx @@ -4,8 +4,12 @@ import { cn } from '@/lib/utils'; const Table = React.forwardRef>( ({ className, ...props }, ref) => ( -
- +
+
) ); @@ -15,7 +19,7 @@ const TableHeader = React.forwardRef< HTMLTableSectionElement, React.HTMLAttributes >(({ className, ...props }, ref) => ( - + )); TableHeader.displayName = 'TableHeader'; @@ -23,7 +27,11 @@ const TableBody = React.forwardRef< HTMLTableSectionElement, React.HTMLAttributes >(({ className, ...props }, ref) => ( - + )); TableBody.displayName = 'TableBody'; @@ -33,7 +41,7 @@ const TableFooter = React.forwardRef< >(({ className, ...props }, ref) => ( tr]:border-b-0', className)} + className={cn('border-t bg-[#111111] font-medium last:[&>tr]:border-b-0', className)} {...props} /> )); @@ -44,7 +52,7 @@ const TableRow = React.forwardRef