Skip to content

Commit 852c1da

Browse files
committed
style: Change axis data container layout from row to column in crosstab-page.css and update LLMSettings form to destroy on close
1 parent 4d34c80 commit 852c1da

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/renderer/src/components/pages/crosstab/crosstab-page.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
/* 轴数据容器样式 */
240240
.axis-data-container {
241241
display: flex;
242-
flex-direction: row;
242+
flex-direction: column;
243243
gap: 24px;
244244
height: 100%;
245245
}
@@ -459,7 +459,7 @@
459459
}
460460

461461
.axis-data-container {
462-
flex-direction: row;
462+
flex-direction: column;
463463
gap: 16px;
464464
}
465465

src/renderer/src/components/settings/LLMSettings.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ function LLMConfigForm({ open, config, onSave, onCancel }: LLMConfigFormProps) {
116116
<Modal
117117
title={config ? '编辑LLM配置' : '新增LLM配置'}
118118
open={open}
119-
onCancel={onCancel}
119+
onCancel={() => {
120+
form.resetFields()
121+
onCancel()
122+
}}
120123
footer={[
121124
<Button
122125
key="test"
@@ -135,7 +138,7 @@ function LLMConfigForm({ open, config, onSave, onCancel }: LLMConfigFormProps) {
135138
]}
136139
width={500}
137140
>
138-
<Form form={form} layout="vertical" initialValues={config}>
141+
<Form form={form} layout="vertical">
139142
<Form.Item
140143
name="name"
141144
label="配置名称"

0 commit comments

Comments
 (0)