From dbe9b4449cfafea3eefa42b3455855bd2b38c88e Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Mon, 30 Mar 2026 11:52:15 +0800 Subject: [PATCH] style: balance shell gutters and sidebar minimum widths --- lib/app/app_shell_desktop.dart | 4 ++-- lib/app/app_shell_web.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/app/app_shell_desktop.dart b/lib/app/app_shell_desktop.dart index c2e9ba06..771ed6e9 100644 --- a/lib/app/app_shell_desktop.dart +++ b/lib/app/app_shell_desktop.dart @@ -21,7 +21,7 @@ class AppShell extends StatefulWidget { } class _AppShellState extends State { - static const _sidebarMinWidth = 56.0; + static const _sidebarMinWidth = 280.0; static const _sidebarViewportPadding = 72.0; static const _mainContentMinWidth = 640.0; static const _sidebarExpandedBaseWidth = 336.0; @@ -357,7 +357,7 @@ class _AppShellState extends State { ), Expanded( child: Padding( - padding: const EdgeInsets.only(top: 4, right: 4), + padding: const EdgeInsets.fromLTRB(4, 4, 4, 0), child: AnimatedPadding( duration: const Duration(milliseconds: 220), curve: Curves.easeOutCubic, diff --git a/lib/app/app_shell_web.dart b/lib/app/app_shell_web.dart index 940c7a9e..91d4fae0 100644 --- a/lib/app/app_shell_web.dart +++ b/lib/app/app_shell_web.dart @@ -21,7 +21,7 @@ class AppShell extends StatefulWidget { } class _AppShellState extends State { - static const _sidebarMinWidth = 56.0; + static const _sidebarMinWidth = 280.0; static const _sidebarViewportPadding = 72.0; static const _mainContentMinWidth = 760.0; static const _sidebarExpandedBaseWidth = 336.0; @@ -360,7 +360,7 @@ class _WebShellBody extends StatelessWidget { Widget build(BuildContext context) { final palette = context.palette; return Padding( - padding: const EdgeInsets.only(top: 4, right: 4), + padding: const EdgeInsets.fromLTRB(4, 4, 4, 0), child: DecoratedBox( decoration: BoxDecoration(color: palette.canvas), child: child,