From ccc404b75a7958ea5bf1b8a7ddba52cd08d32b5d Mon Sep 17 00:00:00 2001 From: eafonyang Date: Wed, 3 Jun 2026 11:52:57 +0800 Subject: [PATCH] =?UTF-8?q?style(appShell):=20=E4=BC=98=E5=8C=96=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E5=A4=96=E5=A3=B3=E5=8F=8A=E5=BA=95=E9=83=A8=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E6=A0=B7=E5=BC=8F=E4=B8=8E=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 tailwind 配置中添加应用外壳相关的 safelist 类名 - 替换 App.tsx 中应用外壳容器的类名,去除多余的内边距容器 - 在现代和遗留样式文件中新增移动端全屏、桌面居中列的样式规则 - 新增底部导航外层和内层的样式及响应式布局支持 - appShell.ts 中将样式类改为统一的 x8- 前缀类名 - BottomNav 组件使用新的样式类名以匹配样式调整 - Home 页面 ListRow 组件支持可选缩略图展示,增加界面展示丰富度 --- client/src/App.tsx | 8 ++-- client/src/components/BottomNav.tsx | 6 +-- client/src/index.css | 57 ++++++++++++++++++++++++ client/src/index.legacy.css | 69 +++++++++++++++++++++++++++++ client/src/lib/appShell.ts | 10 ++--- client/src/pages/Home.tsx | 15 ++++++- tailwind.legacy.config.cjs | 6 +++ 7 files changed, 156 insertions(+), 15 deletions(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index bec56c6..31a393a 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -22,7 +22,7 @@ import SelectPage from "./pages/SelectPage"; import CommunityPage from "./pages/CommunityPage"; import { AIDrawerProvider } from "./contexts/AIDrawerContext"; import DesktopAIShell from "./components/DesktopAIShell"; -import { appShellColumnClass, appShellGutterClass } from "./lib/appShell"; +import { appShellColumnClass, appShellOuterClass } from "./lib/appShell"; const EQPage = lazy(() => import("./pages/EQPage")); const AIPage = lazy(() => import("./pages/AIPage")); @@ -75,10 +75,8 @@ function App() { -
-
+
+
diff --git a/client/src/components/BottomNav.tsx b/client/src/components/BottomNav.tsx index d5b57e2..623bf1a 100644 --- a/client/src/components/BottomNav.tsx +++ b/client/src/components/BottomNav.tsx @@ -22,7 +22,7 @@ import { } from "lucide-react"; import { Link, useLocation } from "wouter"; import { useMemo } from "react"; -import { appShellColumnClass, appShellGutterClass } from "@/lib/appShell"; +import { bottomNavInnerClass, bottomNavOuterClass } from "@/lib/appShell"; type BottomNavLocale = NonNullable<(typeof localeZh)["bottomNav"]>; @@ -57,10 +57,10 @@ export default function BottomNav() { return (