From a7ecc4010dedb826548877d08a63f40f28aca0fc Mon Sep 17 00:00:00 2001 From: Willie Date: Wed, 18 Mar 2026 14:23:10 +0800 Subject: [PATCH] fix(ui): move sync preview banner above editor to avoid toast overlap --- ui/src/pages/ConfigPage.tsx | 64 ++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/ui/src/pages/ConfigPage.tsx b/ui/src/pages/ConfigPage.tsx index 08600e8af..7a370170b 100644 --- a/ui/src/pages/ConfigPage.tsx +++ b/ui/src/pages/ConfigPage.tsx @@ -176,6 +176,38 @@ export default function ConfigPage() { /> + {showSyncBanner && ( + +
+
+ + + Config updated — preview what sync will do? + +
+
+ + +
+
+
+ )} + {tab === 'config' && (
@@ -214,38 +246,6 @@ export default function ConfigPage() { /> )} - {showSyncBanner && ( - -
-
- - - Config updated — preview what sync will do? - -
-
- - -
-
-
- )} - setShowSyncPreview(false)}