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