优化TabPage中关闭按钮的布局,使其靠右显示

This commit is contained in:
zqm
2025-11-05 14:58:48 +08:00
parent 78cab570fc
commit 647ced8b86

View File

@@ -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;
} }
/* 确保在活动标签页中的按钮样式正确 */ /* 确保在活动标签页中的按钮样式正确 */