|
|
@@ -2717,9 +2717,10 @@ from desktop.views import _ko
|
|
|
.display-area {
|
|
|
overflow-y: auto;
|
|
|
background-color: #fff;
|
|
|
- padding: 10px;
|
|
|
+ padding: 5px 10px 0px 10px;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
+ border-top: 1px solid #eee;
|
|
|
}
|
|
|
.message {
|
|
|
padding: 10px 14px;
|
|
|
@@ -2748,7 +2749,6 @@ from desktop.views import _ko
|
|
|
.input-area {
|
|
|
display: flex;
|
|
|
padding: 10px;
|
|
|
- border-top: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.user-input {
|
|
|
@@ -2781,20 +2781,30 @@ from desktop.views import _ko
|
|
|
background-color: #0056b3;
|
|
|
}
|
|
|
|
|
|
+ /* 在 .no-custom-scrollbar 及其子元素中禁用自定义 */
|
|
|
+ .no-custom-scrollbar ::-webkit-scrollbar {
|
|
|
+ width: auto; /* 恢复默认宽度 */
|
|
|
+ height: auto; /* 恢复默认高度 */
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 或者彻底隐藏滚动条(如果你希望这样) */
|
|
|
+ .no-custom-scrollbar ::-webkit-scrollbar {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
</style>
|
|
|
- <div class="assist-flex-header">
|
|
|
+ <div class="assist-flex-header" style="margin-bottom: 5px">
|
|
|
<div class="assist-inner-header">
|
|
|
<div class="function-dialect-dropdown" data-bind="component: { name: 'hue-drop-down', params: { fixedPosition: true, value: activeType, entries: availableTypes, linkTitle: '${ _ko('Selected dialect') }' } }" style="display: inline-block"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 显示区域 -->
|
|
|
- <div class="display-area" data-bind="foreach: { data: messages, afterAdd: scrollToBottom }">
|
|
|
+ <div class="display-area no-custom-scrollbar" data-bind="foreach: { data: messages, afterAdd: scrollToBottom }">
|
|
|
<!-- 消息 -->
|
|
|
<div class="message" data-bind="html: content, css:{ 'ai-message': type==='ai', 'user-message': type==='user'}"></div>
|
|
|
</div>
|
|
|
|
|
|
<!-- 输入区域 -->
|
|
|
- <div class="input-area">
|
|
|
+ <div class="input-area no-custom-scrollbar">
|
|
|
<textarea rows="1" class="user-input clearable" placeholder="请输入你的问题..."
|
|
|
data-bind=" textInput: query, event: { keydown: ask, input: autoResize} "></textarea>
|
|
|
<!-- <button class="send-btn" data-bind="click: answer">发送</button>-->
|