fix: fix flex layout and input issues
Replace flex-full with min-h-0 flex-1 on both tab containers to enable proper mobile scrolling. Add mt-auto shrink-0 class to the input area wrapper to keep it pinned to the bottom of the layout.
This commit is contained in:
@@ -18,14 +18,14 @@
|
||||
</div>
|
||||
|
||||
<!-- 发现页 -->
|
||||
<div v-show="tabIndex === 0" class="flex-full overflow-hidden" @touchstart.capture="handleScrollAreaTouchStart"
|
||||
<div v-show="tabIndex === 0" class="min-h-0 flex-1 overflow-hidden" @touchstart.capture="handleScrollAreaTouchStart"
|
||||
@touchstart="handleScrollAreaTouchStart" @touchmove="handleScrollAreaTouchMove">
|
||||
|
||||
<Discovery @scroll-touch-start="handleScrollAreaTouchStart" @scroll-touch="handleScrollAreaTouchMove" />
|
||||
</div>
|
||||
|
||||
<!-- 消息列表(可滚动区域) -->
|
||||
<div v-show="tabIndex === 1" class="flex-full overflow-hidden" :scroll-top="scrollTop" @scroll="handleScroll"
|
||||
<div v-show="tabIndex === 1" class="min-h-0 flex-1 overflow-hidden" :scroll-top="scrollTop" @scroll="handleScroll"
|
||||
@scrolltolower="handleScrollToLower" @touchstart.capture="handleScrollAreaTouchStart"
|
||||
@touchstart="handleScrollAreaTouchStart" @touchmove="handleScrollAreaTouchMove">
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
</div>
|
||||
|
||||
<!-- 输入框区域 -->
|
||||
<div>
|
||||
<div class="mt-auto shrink-0">
|
||||
<ChatQuickAccess />
|
||||
<ChatInputArea ref="inputAreaRef" v-model="inputMessage" :holdKeyboard="holdKeyboard"
|
||||
:is-session-active="isSessionActive" :stop-request="stopRequest" @send="sendMessageAction"
|
||||
|
||||
Reference in New Issue
Block a user