diff --git a/client/lib/screens/shell/app_shell.dart b/client/lib/screens/shell/app_shell.dart index 2c4aaa2..8a87479 100644 --- a/client/lib/screens/shell/app_shell.dart +++ b/client/lib/screens/shell/app_shell.dart @@ -155,6 +155,8 @@ class _AppShellState extends ConsumerState { final isOnline = ref.watch(connectivityProvider); final location = GoRouterState.of(context).matchedLocation; final isMobile = context.isMobile; + // iOS/刘海屏状态栏高度:顶栏需下移此距离,避免菜单按钮被状态栏遮挡 + final topInset = MediaQuery.of(context).padding.top; final sidebarWidth = _sidebarExpanded ? 200.0 : 56.0; final updateNotifier = ref.watch(updateProvider.notifier); final updateInfo = ref.watch(updateProvider).valueOrNull; @@ -169,11 +171,11 @@ class _AppShellState extends ConsumerState { drawerEnableOpenDragGesture: !kIsWeb && isMobile, body: Column( children: [ - // Top Bar + // Top Bar(高度含状态栏内边距,蓝色铺满到屏幕顶,内容下移避开状态栏) Container( - height: 56, + height: 56 + topInset, color: AppTheme.primary, - padding: const EdgeInsets.symmetric(horizontal: 8), + padding: EdgeInsets.only(top: topInset, left: 8, right: 8), child: Row( children: [ IconButton( diff --git a/todo/todo.html b/todo/todo.html index bbff4cc..37c7a69 100644 --- a/todo/todo.html +++ b/todo/todo.html @@ -223,10 +223,10 @@ ul.todo-list { list-style: none; margin: 0; padding: 0; }

酒库管理系统 — 项目 TODO

生成于 2026-06-16 · 真相源 todo/todo.json
-
48全部
+
49全部
1待开始
0开发中
-
33待验收
+
34待验收
14已验收
@@ -318,7 +318,7 @@ ul.todo-list { list-style: none; margin: 0; padding: 0; }
- 🔍 待验收 33 + 🔍 待验收 34 ▴ 收起
@@ -847,6 +847,34 @@ ul.todo-list { list-style: none; margin: 0; padding: 0; } + + + +
  • +
    + iOS 顶栏被状态栏遮挡,菜单按钮点不到(SafeArea) +
    + 待验收 + 重要 + + + +
    +
    + + +