Skip to content

Commit f94b9ea

Browse files
committed
fix: bug fix
1 parent 9c53f04 commit f94b9ea

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

frontend/public/assistant.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,13 @@
320320
position: fixed;bottom: 16px;right: 16px;overflow: hidden;
321321
}
322322
323+
.ed-overlay-dialog {
324+
margin-top: 50px;
325+
}
326+
.ed-drawer {
327+
margin-top: 50px;
328+
}
329+
323330
#sqlbot-assistant #sqlbot-assistant-chat-container .sqlbot-assistant-operate{
324331
top: 18px;
325332
right: 15px;

frontend/src/views/chat/ChatRow.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ withDefaults(
2222
<logo_fold v-if="!hideAvatar" />
2323
</el-icon>
2424
</div>
25-
<div style="width: 100%" :class="{ 'row-full': msg.role === 'assistant' }">
25+
<div
26+
:style="{ width: msg.role === 'assistant' ? 0 : '100%' }"
27+
:class="{ 'row-full': msg.role === 'assistant' }"
28+
>
2629
<slot></slot>
2730
</div>
2831
</div>

frontend/src/views/embedded/index.vue

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,3 @@ onBeforeUnmount(() => {
191191
}
192192
}
193193
</style>
194-
195-
<style lang="less">
196-
.ed-overlay-dialog,
197-
.ed-drawer {
198-
margin-top: 50px;
199-
}
200-
</style>

0 commit comments

Comments
 (0)