From 6a10082b24ef293604d9aed8bed0b3ad0d38fb49 Mon Sep 17 00:00:00 2001 From: Supra4E8C Date: Sat, 2 May 2026 04:22:13 +0800 Subject: [PATCH] fix(layout): move mobile sidebar toggle left --- src/components/layout/MainLayout.tsx | 20 ++++++++++++++++---- src/styles/layout.scss | 25 +++++++++++++++++++++++-- 2 files changed, 39 insertions(+), 6 deletions(-) diff --git a/src/components/layout/MainLayout.tsx b/src/components/layout/MainLayout.tsx index 7995121..09c80eb 100644 --- a/src/components/layout/MainLayout.tsx +++ b/src/components/layout/MainLayout.tsx @@ -74,6 +74,12 @@ const headerIcons = { ), + close: ( + + + + + ), chevronLeft: ( @@ -465,6 +471,9 @@ export function MainLayout() { } showNotification(t('notification.data_refreshed'), 'success'); }; + const mobileSidebarToggleLabel = sidebarOpen + ? t('sidebar.toggle_collapse', { defaultValue: 'Close navigation' }) + : t('sidebar.toggle_expand', { defaultValue: 'Open navigation' }); return (
@@ -489,17 +498,20 @@ export function MainLayout() { {sidebarCollapsed ? headerIcons.chevronRight : headerIcons.chevronLeft} -
+
+
+ +