Skip to content

Commit c166842

Browse files
update main style :
.rc-dyn-tabs-title should fill its space and fix position of tab's close icon
1 parent fd2a80f commit c166842

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

style/react-dyn-tabs.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,13 @@
6565
cursor: pointer;
6666
top: 50%;
6767
transform: translateY(-50%);
68-
line-height: 0px;
6968
right: 4px;
7069
left: auto;
70+
display: inline-flex;
71+
justify-content: center;
72+
align-items: center;
73+
right: 10px;
74+
width: 10px;
7175
}
7276
.rc-dyn-tabs-tablist-view .rc-dyn-tabs-title {
7377
position: relative;
@@ -82,6 +86,7 @@
8286
outline: none;
8387
justify-content: center;
8488
flex-direction: row-reverse;
89+
flex: 1;
8590
}
8691
.rc-dyn-tabs-tablist-view .rc-dyn-tabs-showmorebutton {
8792
display: inline-flex;

style/scss/modules/_react-dyn-tabs.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,13 @@
6464
cursor: pointer;
6565
top: 50%;
6666
transform: translateY(-50%);
67-
line-height: 0px;
6867
right: 4px;
6968
left: auto;
69+
display: inline-flex;
70+
justify-content: center;
71+
align-items: center;
72+
right: 10px;
73+
width: 10px;
7074
}
7175
.rc-dyn-tabs-title {
7276
position: relative;
@@ -81,6 +85,7 @@
8185
outline: none;
8286
justify-content: center;
8387
flex-direction: row-reverse;
88+
flex: 1;
8489
}
8590
.rc-dyn-tabs-showmorebutton {
8691
display: inline-flex;

themes/react-dyn-tabs-basic.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@
1616
.rc-dyn-tabs-tablist-view .rc-dyn-tabs-title:active:hover {
1717
background-color: #ddd;
1818
}
19-
.rc-dyn-tabs-tablist-view .rc-dyn-tabs-close {
20-
top: 50%;
21-
transform: translateY(-50%);
22-
line-height: 0px;
23-
right: 10px;
24-
}
2519
.rc-dyn-tabs-tablist-view .rc-dyn-tabs-selected .rc-dyn-tabs-title {
2620
background-color: #ccc;
2721
}

themes/scss/modules/_react-dyn-tabs-basic.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ $selected-tab-background-color: #ccc;
2121
.rc-dyn-tabs-title:active:hover {
2222
background-color: $actived-tab-background-color;
2323
}
24-
.rc-dyn-tabs-close {
25-
top: 50%;
26-
transform: translateY(-50%);
27-
line-height: 0px;
28-
right: 10px;
29-
}
3024
.rc-dyn-tabs-selected .rc-dyn-tabs-title {
3125
background-color: $selected-tab-background-color;
3226
}

0 commit comments

Comments
 (0)