From b71b7e6cdfe894dfc6a2225e1929624e5b61d43b Mon Sep 17 00:00:00 2001 From: TradeMate Dev Date: Thu, 21 May 2026 10:10:11 +0800 Subject: [PATCH] Fix desktop responsive layout: sidebar, content sizing, remove duplicate tab bar - Replace uni-app custom-tab-bar with manual NavBar component in App.vue (uni-app auto-detection was not including component in build) - Mobile: NavBar hidden via CSS display:none, uni-app default tab bar handles nav - Desktop: NavBar visible as 220px left sidebar, uni-app tab bar hidden - Content area: max-width 1200px with margin-left:220px, centered - Buttons/inputs/cards: global desktop CSS overrides for reasonable sizing - Clean approach: NavBar always in DOM, CSS media queries control visibility (no v-if, no conflicting !important) --- uni-app/src/App.vue | 39 +++++- uni-app/src/components/nav-bar.vue | 123 +++++++++++++++++++ uni-app/src/custom-tab-bar/index.vue | 170 --------------------------- uni-app/src/pages.json | 2 +- 4 files changed, 160 insertions(+), 174 deletions(-) create mode 100644 uni-app/src/components/nav-bar.vue delete mode 100644 uni-app/src/custom-tab-bar/index.vue diff --git a/uni-app/src/App.vue b/uni-app/src/App.vue index f4b3a23..5e626d7 100644 --- a/uni-app/src/App.vue +++ b/uni-app/src/App.vue @@ -1,8 +1,12 @@ diff --git a/uni-app/src/custom-tab-bar/index.vue b/uni-app/src/custom-tab-bar/index.vue deleted file mode 100644 index b882c48..0000000 --- a/uni-app/src/custom-tab-bar/index.vue +++ /dev/null @@ -1,170 +0,0 @@ - - - - - \ No newline at end of file diff --git a/uni-app/src/pages.json b/uni-app/src/pages.json index 3182aec..eea5f9a 100644 --- a/uni-app/src/pages.json +++ b/uni-app/src/pages.json @@ -111,7 +111,7 @@ "backgroundColor": "#f5f5f5" }, "tabBar": { - "custom": true, + "custom": false, "color": "#666666", "selectedColor": "#1890ff", "backgroundColor": "#ffffff",