From 7c304545f8fcef0a2d1d589255d363bd35fe877d Mon Sep 17 00:00:00 2001 From: Fringg Date: Sat, 7 Feb 2026 01:01:08 +0300 Subject: [PATCH] fix: move theme save/cancel buttons outside collapsible section Save and Cancel buttons were hidden inside the collapsible "Custom Colors" section, so manual color changes were lost on navigation. Moved them to the top level so they are always visible when there are unsaved changes. --- src/components/admin/ThemeTab.tsx | 46 +++++++++++++++---------------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/src/components/admin/ThemeTab.tsx b/src/components/admin/ThemeTab.tsx index da9f2f3..7938473 100644 --- a/src/components/admin/ThemeTab.tsx +++ b/src/components/admin/ThemeTab.tsx @@ -395,34 +395,32 @@ export function ThemeTab() { /> - - {/* Save / Cancel / Reset buttons */} -
- {hasUnsavedChanges && ( - <> - - - - )} -
)} + {/* Save / Cancel — always visible when there are unsaved changes */} + {hasUnsavedChanges && ( +
+ + +
+ )} + {/* Reset all colors */}