优化TabPage标签布局,调整flex属性确保标题和关闭按钮正确对齐
This commit is contained in:
@@ -112,12 +112,12 @@ const closeTab = (tabId) => {
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: fit-content;
|
min-width: fit-content;
|
||||||
|
flex: 0 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-title {
|
.tab-title {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
flex: 1;
|
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
@@ -144,7 +144,7 @@ const closeTab = (tabId) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.button-icon {
|
.button-icon {
|
||||||
margin-left: auto;
|
margin-left: 8px;
|
||||||
margin-right: -8px;
|
margin-right: -8px;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
|
|||||||
Reference in New Issue
Block a user