优化TabPage中关闭按钮的布局,使其靠右显示
This commit is contained in:
@@ -112,6 +112,7 @@ const closeTab = (tabId) => {
|
|||||||
color: white;
|
color: white;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-item.active {
|
.tab-item.active {
|
||||||
@@ -134,13 +135,14 @@ const closeTab = (tabId) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.button-icon {
|
.button-icon {
|
||||||
margin-left: 8px;
|
margin-left: auto;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 确保在活动标签页中的按钮样式正确 */
|
/* 确保在活动标签页中的按钮样式正确 */
|
||||||
|
|||||||
Reference in New Issue
Block a user