style: table column congirure fields bar style improve (#5055)

This commit is contained in:
Katherine 2024-08-14 16:56:33 +08:00 committed by GitHub
parent 1338940c71
commit ecaf0b7e79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -166,7 +166,9 @@ const useTableColumns = (props: { showDel?: boolean; isSubTable?: boolean }) =>
title: render(),
dataIndex: 'TABLE_COLUMN_INITIALIZER',
key: 'TABLE_COLUMN_INITIALIZER',
render: designable ? () => <div style={{ width: '100%' }} /> : null,
render: designable
? () => <div style={{ width: '100%', minWidth: '180px' }} className="nb-column-initializer" />
: null,
fixed: designable ? 'right' : 'none',
},
];

View File

@ -19,7 +19,9 @@ export const useStyles = createStyles(({ token, css }) => {
.ant-table-thead button[aria-label*='schema-initializer-TableV2-table:configureColumns'] > .ant-btn-icon {
margin: 0px;
}
.ant-table-tbody .nb-column-initializer {
min-width: 40px !important;
}
// reset Select record popup
.ant-table-thead
button[aria-label*='schema-initializer-TableV2.Selector-table:configureColumns']
@ -54,10 +56,6 @@ export const useStyles = createStyles(({ token, css }) => {
.ant-card-body .nb-action-bar .ant-btn-icon {
margin-inline-end: 0px !important;
}
.ant-card-body .ant-table-cell-fix-right:last-child {
// display: table-cell;
// width: auto;
}
.ant-card-body .nb-table-container {
margin-right: -20px;
margin-left: -10px;