style(theme-3): 修复详情页顶部导航栏上方的空白边距及滚动内容穿透问题

This commit is contained in:
2026-06-18 10:57:43 +08:00
parent 2b70ceb77b
commit 03c625f7b1
2 changed files with 5 additions and 2 deletions

View File

@@ -172,7 +172,7 @@ watch(
/>
</div>
<main ref="mainRef" :class="['main', { 'has-nav': showBottomNav }]">
<main ref="mainRef" :class="['main', { 'has-nav': showBottomNav, 'main--detail': isDetailPage }]">
<RouterView v-slot="{ Component, route: viewRoute }">
<KeepAlive v-if="viewRoute.meta.keepAlive" :max="10">
<component :is="Component" :key="viewRoute.path" />
@@ -350,6 +350,9 @@ watch(
.main.has-nav {
padding-bottom: 16px;
}
.main.main--detail {
padding-top: 0;
}
.bottom-nav {
display: flex;

View File

@@ -453,7 +453,7 @@ function onPickSelection(selId: string, marketId: string) {
<style scoped>
.detail-page {
margin: 0 -16px;
padding-top: 8px;
padding-top: 0;
padding-bottom: 16px;
background: var(--bg-body);
}