fix scroll exception

This commit is contained in:
Timi
2025-12-18 11:57:07 +08:00
parent 9f7df3cfed
commit 1ad1da1c4e
3 changed files with 29 additions and 15 deletions

View File

@ -57,7 +57,7 @@
.loading, .loading,
.finished { .finished {
color: var(--td-text-color-placeholder); color: var(--td-text-color-placeholder);
padding: 32rpx 0; padding: 32rpx 0 64rpx 0;
font-size: 24rpx; font-size: 24rpx;
text-align: center; text-align: center;
} }

View File

@ -1,8 +1,21 @@
page { page {
height: 100vh;
background: var(--td-bg-color-page); background: var(--td-bg-color-page);
} }
.content { .page-container {
width: 100vw; width: 100%;
height: calc(100vh - var(--navbar-height, 88rpx)); height: 100%;
display: flex;
overflow: hidden;
flex-direction: column;
.navbar {
flex-shrink: 0;
}
.content {
flex: 1;
overflow: hidden;
}
} }

View File

@ -1,12 +1,13 @@
<view class="custom-navbar"> <view class="page-container">
<t-navbar title="列表查找" left-arrow /> <view class="navbar">
</view> <t-navbar title="列表查找" left-arrow />
</view>
<view class="content"> <view class="content">
<journal-list <journal-list
id="listRef" id="listRef"
searchable="{{true}}" searchable="{{true}}"
mode="navigate" mode="navigate"
bind:navigate="onNavigateItem" bind:navigate="onNavigateItem"
/> />
</view>
</view> </view>