Skip to content

Commit 60d088c

Browse files
committed
style: sql执行结果表格颜色
1 parent a0a070c commit 60d088c

5 files changed

Lines changed: 16 additions & 15 deletions

File tree

chat2db-client/src/components/SearchResult/TableBox/index.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ interface IViewTableCellData {
3333
value: any;
3434
}
3535

36-
const DarkSupportBaseTable: any = styled(BaseTable)`
37-
&.dark {
36+
const SupportBaseTable: any = styled(BaseTable)`
37+
&.supportBaseTable {
3838
--bgcolor: var(--color-bg-base);
3939
--header-bgcolor: var(--color-bg-elevated);
40-
--hover-bgcolor: #46484a;
41-
--header-hover-bgcolor: #606164;
42-
--highlight-bgcolor: #191a1b;
43-
--header-highlight-bgcolor: #191a1b;
40+
--hover-bgcolor: var(--color-hover-bg);
41+
--header-hover-bgcolor: var(--color-hover-bg);
42+
--highlight-bgcolor: var(--color-hover-bg);
43+
--header-highlight-bgcolor: var(--color-hover-bg);
4444
--color: var(--color-text);
45-
--header-color: #dadde1;
45+
--header-color: var(--color-text);
4646
--lock-shadow: rgb(37 37 37 / 0.5) 0 0 6px 2px;
4747
--border-color: var(--color-border-secondary);
4848
}
@@ -259,8 +259,8 @@ export default function TableBox(props: ITableProps) {
259259
</Button>
260260
</Dropdown>
261261
</div>
262-
<DarkSupportBaseTable
263-
className={classnames({ dark: isDarkTheme }, props.className, styles.table)}
262+
<SupportBaseTable
263+
className={classnames('supportBaseTable', props.className, styles.table)}
264264
components={{ EmptyContent: () => <h2>{i18n('common.text.noData')}</h2> }}
265265
isStickyHead
266266
stickyTop={31}
@@ -279,7 +279,6 @@ export default function TableBox(props: ITableProps) {
279279
open={!!viewTableCellData?.name}
280280
onCancel={handleCancel}
281281
width="60vw"
282-
height="70vh"
283282
maskClosable={false}
284283
footer={
285284
<>

chat2db-client/src/pages/main/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
justify-content: center;
5353
align-items: center;
5454
align-items: center;
55-
margin-bottom: 10px;
55+
margin-bottom: 16px;
5656
width: 40px;
5757
height: 40px;
5858
border-radius: 8px;

chat2db-client/src/theme/background/dark.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ const antDarkTheme = {
4545
colorHoverBg: 'hsla(0, 0%, 100%, 0.03)',
4646
colorBgContainer: '#0a0b0c',
4747
colorBgElevated: '#131418',
48-
colorBorder: '#36373a',
48+
colorBorder: 'rgba(54, 55, 58,0.4)',
49+
colorBorderSecondary: 'rgba(54, 55, 58,0.4)',
4950
},
5051
};
5152

chat2db-client/src/theme/background/darkDimmed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const antdLightTheme = {
4545
colorHoverBg: 'hsla(0, 0%, 100%, 0.03)',
4646
colorBgContainer: 'rgb(28, 33, 40)',
4747
colorBgElevated: 'rgb(34, 39, 46)',
48-
colorBorder: 'rgb(68, 76, 86)',
48+
colorBorder: 'rgba(55, 62, 71, 0.4)',
4949
colorBorderSecondary: 'rgba(55, 62, 71, 0.4)',
5050
controlItemBgActive: 'rgba(241, 241, 244, 0.08);',
5151
// ...commonToken,

chat2db-client/src/theme/background/light.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ const antdLightTheme = {
4242
...commonToken,
4343
colorText: "#232429",
4444
colorBgBase: '#fff',
45-
colorHoverBg: '#eee',
45+
colorHoverBg: 'rgba(0, 0, 0, 0.03)',
4646
colorBgContainer: '#fff',
4747
colorBgElevated: '#f6f8fa',
48-
colorBorder: '#d3d3d4',
48+
colorBorder: 'rgba(211, 211, 212, 0.4)',
49+
colorBorderSecondary: 'rgba(211, 211, 212, 0.4)',
4950
},
5051
};
5152

0 commit comments

Comments
 (0)