Skip to content

Commit 1fe817b

Browse files
committed
style: tab颜色
1 parent 63541f2 commit 1fe817b

4 files changed

Lines changed: 31 additions & 26 deletions

File tree

chat2db-client/src/components/SearchResult/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
.resultHeader {
1919
flex-shrink: 0;
2020
overflow-x: scroll;
21-
background-color: var(--color-bg-elevated);
21+
background-color: var(--color-bg-base);
2222

2323
&::-webkit-scrollbar {
2424
display: none;

chat2db-client/src/components/Tabs/index.less

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
@import '../../styles/var.less';
22

33
.tab-focus() {
4-
background-color: var(--color-bg-elevated) !important;
4+
background-color: var(--color-bg-elevated);
55
// 添加内阴影
66
border-bottom: 1px solid var(--color-primary);
7-
.icon{
7+
.icon {
88
display: flex;
99
}
1010
}
1111

1212
.tab-focus-line() {
1313
color: var(--color-primary);
14-
background-color: var(--color-bg-base);
14+
background-color: var(--color-bg-elevated);
15+
.icon {
16+
display: flex;
17+
}
1518
}
1619

1720
.tab {
1821
display: flex;
1922
overflow: auto;
20-
&::-webkit-scrollbar {display: none;}
23+
&::-webkit-scrollbar {
24+
display: none;
25+
}
2126
}
2227

2328
.tabList {
@@ -35,12 +40,12 @@
3540
cursor: pointer;
3641
user-select: none;
3742
border-right: 1px solid var(--color-border);
38-
.textBox{
43+
.textBox {
3944
flex: 1;
4045
display: flex;
4146
align-items: center;
4247
}
43-
.text{
48+
.text {
4449
flex: 1;
4550
width: 0;
4651
.f-single-line();
@@ -60,10 +65,7 @@
6065
}
6166
}
6267
&:hover {
63-
.icon {
64-
display: flex;
65-
}
66-
background-color: var(--color-bg-hover);
68+
.tab-focus();
6769
color: var(--color-primary);
6870
}
6971
}
@@ -78,19 +80,23 @@
7880
width: 100px;
7981
cursor: pointer;
8082
border-right: 1px solid var(--color-border);
81-
&:hover {
82-
.tab-focus-line();
83-
.text {
84-
color: var(--color-primary);
85-
}
83+
.textBox {
84+
flex: 1;
85+
display: flex;
86+
align-items: center;
87+
}
88+
.text {
89+
flex: 1;
90+
width: 0;
91+
.f-single-line();
8692
}
8793
.text {
8894
flex: 1;
8995
width: 0;
9096
.f-single-line();
9197
}
9298
.icon {
93-
display: flex;
99+
display: none;
94100
align-items: center;
95101
flex-shrink: 0;
96102
height: 20px;
@@ -103,6 +109,10 @@
103109
color: var(--color-primary);
104110
}
105111
}
112+
&:hover {
113+
.tab-focus-line();
114+
color: var(--color-primary);
115+
}
106116
}
107117

108118
.activeTab {
@@ -129,20 +139,20 @@
129139
}
130140
}
131141

132-
.input{
142+
.input {
133143
border: 0;
134144
width: 86px;
135145
flex: 1;
136146
height: 20px;
137147
outline: none;
138148
font-size: 12px;
139149
font-weight: 400;
140-
input:focus{
150+
input:focus {
141151
outline: none;
142152
}
143153
}
144154

145-
.prefixIcon{
155+
.prefixIcon {
146156
flex-shrink: 0;
147157
margin-right: 4px;
148158
}

chat2db-client/src/layouts/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ import { v4 as uuidv4 } from 'uuid';
77
import { getAntdThemeConfig } from '@/theme';
88
import { IVersionResponse } from '@/typings';
99
import miscService from '@/service/misc';
10-
1110
import antdEnUS from 'antd/locale/en_US';
1211
import antdZhCN from 'antd/locale/zh_CN';
1312
import { useTheme } from '@/hooks';
14-
import { isEn } from '@/utils/check';
13+
import { isEn } from '@/i18n';
1514
import { ThemeType, PrimaryColorType, LangType } from '@/constants/';
1615
import { InjectThemeVar } from '@/theme';
1716
import styles from './index.less';

chat2db-client/src/utils/check.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)