Skip to content

Commit 474f371

Browse files
committed
Merge branch 'dev' of github.com:chat2db/Chat2DB into dev
2 parents 6639367 + ca48475 commit 474f371

5 files changed

Lines changed: 15 additions & 1 deletion

File tree

chat2db-client/src/blocks/DatabaseTableEditor/ColumnList/index.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,9 @@
130130
display: none;
131131
}
132132
}
133+
// antd无法设置最小宽度,所以在这里设置最小列宽为100px
134+
colgroup col:nth-last-child(2) {
135+
min-width: 100px;
136+
}
133137
}
134138
}

chat2db-client/src/blocks/DatabaseTableEditor/IndexList/index.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,12 @@
122122
display: none;
123123
}
124124
}
125+
// antd无法设置最小宽度,所以在这里设置最小列宽为100px
126+
colgroup col:nth-last-child(2) {
127+
min-width: 100px;
128+
}
129+
// colgroup col:nth-last-child(3) {
130+
// min-width: 100px;
131+
// }
125132
}
126133
}

chat2db-client/src/blocks/DatabaseTableEditor/IndexList/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ const IndexList = forwardRef((props: IProps, ref: ForwardedRef<IIndexListRef>) =
396396
pagination={false}
397397
rowKey="key"
398398
columns={columns as any}
399+
scroll={{ x: '100%' }}
399400
dataSource={dataSource.filter((i) => i.editStatus !== EditColumnOperationType.Delete)}
400401
/>
401402
</SortableContext>

chat2db-client/src/blocks/DatabaseTableEditor/index.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
justify-content: space-between;
1414
margin: 10px 10px 0px 10px;
1515
box-sizing: border-box;
16+
overflow: hidden;
1617
}
1718

1819
.saveButton {

chat2db-client/src/pages/main/workspace/components/WorkspaceExtend/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Popover } from 'antd';
55
import Iconfont from '@/components/Iconfont';
66
import Output from '@/components/Output';
77
import { useWorkspaceStore } from '@/store/workspace';
8+
import i18n from '@/i18n';
89

910
interface IProps {
1011
className?: string;
@@ -32,7 +33,7 @@ export default memo<IProps>((props) => {
3233
// },
3334
{
3435
code: 'executiveLog',
35-
title: '执行记录',
36+
title: i18n('common.title.executiveLogging'),
3637
icon: '\ue8ad',
3738
components: <Output curWorkspaceParams={props.curWorkspaceParams} />,
3839
},

0 commit comments

Comments
 (0)