优化TabPage标签样式:1. 添加justify-content: space-between实现文本靠左按钮靠右;2. 将背景色修改为#f0f0f0与Areas标题栏一致;3. 优化active状态样式,添加蓝色上边框;4. 调整关闭按钮样式

This commit is contained in:
zqm
2025-11-05 10:59:54 +08:00
parent 9e19db7911
commit 32cb0e5676

View File

@@ -84,10 +84,11 @@ const closeTab = (tabId) => {
.tab-item { .tab-item {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between;
height: 26px; height: 26px;
padding: 0 16px; padding: 0 16px;
margin-left: 1px; margin-left: 1px;
background: #e8e8e8; background: #f0f0f0;
border: 1px solid #c7d2ea; border: 1px solid #c7d2ea;
border-bottom-color: #c7d2ea; border-bottom-color: #c7d2ea;
border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0;
@@ -100,7 +101,10 @@ const closeTab = (tabId) => {
.tab-item.active { .tab-item.active {
background: #ffffff; background: #ffffff;
border: 1px solid #c7d2ea;
border-bottom-color: #ffffff; border-bottom-color: #ffffff;
border-top-width: 2px;
border-top-color: #0078d7;
font-weight: 500; font-weight: 500;
} }
@@ -114,11 +118,11 @@ const closeTab = (tabId) => {
.tab-close { .tab-close {
margin-left: 8px; margin-left: 8px;
font-size: 16px; font-size: 14px;
color: #666; color: #333;
cursor: pointer; cursor: pointer;
padding: 0 2px; padding: 0 4px;
border-radius: 1px; border-radius: 2px;
} }
.tab-close:hover { .tab-close:hover {