chore: 修复输入区导致的高度问题

This commit is contained in:
2025-11-03 17:10:49 +08:00
parent 2dfb2e0316
commit 5b9114aeac
4 changed files with 1323 additions and 892 deletions

View File

@@ -276,7 +276,7 @@
</template>
<script>
import nsLoading from '../ns-loading/ns-loading.vue'
import nsLoading from '@/components/ns-loading/ns-loading.vue'
export default {
name: 'ai-chat-message',
@@ -774,17 +774,21 @@ export default {
</script>
<style lang="scss" scoped>
.ai-chat-container {
height: 100%;
display: flex;
flex-direction: column;
background-color: #f8f8f8;
overflow: hidden;
}
.chat-messages {
flex: 1;
padding: 20rpx;
overflow: hidden;
overflow-y: auto;
box-sizing: border-box;
height: calc(100% - 200rpx); /* 减去输入区域高度 */
}
.load-more {
@@ -821,6 +825,8 @@ export default {
flex: 1;
margin-left: 20rpx;
max-width: calc(100% - 100rpx);
min-width: 0;
width: 0; /* 添加这个属性防止flex元素溢出 */
}
}