Skip to content

Commit 3edc684

Browse files
authored
fix: There may be misalignment when extracting Excel spreadsheets using applications (#3809)
1 parent fcc61f0 commit 3edc684

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

ui/src/views/chat/pc/index.vue

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,12 @@
104104
</div>
105105
<div
106106
class="chat-pc__right chat-background"
107-
:style="{ backgroundImage: `url(${applicationDetail?.chat_background})` }"
107+
:style="{
108+
backgroundImage: `url(${applicationDetail?.chat_background})`,
109+
'--execution-detail-panel-width': rightPanelSize + 'px',
110+
}"
108111
>
109-
<div style="flex: 1">
112+
<div style="flex: 1; width: calc(100% - var(--execution-detail-panel-width))">
110113
<div class="p-16-24 flex-between">
111114
<h4 class="ellipsis-1" style="width: 66%">
112115
{{ currentChatName }}
@@ -160,12 +163,7 @@
160163
</AiChat>
161164
</div>
162165
</div>
163-
<div
164-
class="execution-detail-panel"
165-
:style="`width: ${rightPanelSize}px`"
166-
:resizable="false"
167-
collapsible
168-
>
166+
<div class="execution-detail-panel" :resizable="false" collapsible>
169167
<div class="p-16 flex-between border-b">
170168
<h4 class="medium ellipsis" :title="rightPanelTitle">{{ rightPanelTitle }}</h4>
171169

@@ -577,7 +575,13 @@ function closeExecutionDetail() {
577575
max-width: 80%;
578576
margin: 0 auto;
579577
}
580-
578+
.chat-pc__right {
579+
width: calc(100vw - 280px);
580+
--execution-detail-panel-width: 400px;
581+
.execution-detail-panel {
582+
width: var(--execution-detail-panel-width, 400px);
583+
}
584+
}
581585
@media only screen and (max-width: 1000px) {
582586
.chat-width {
583587
max-width: 100% !important;

0 commit comments

Comments
 (0)