diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/TabPage.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/TabPage.vue
index 53b6eed..bb015be 100644
--- a/AutoRobot/Windows/Robot/Web/src/DockLayout/TabPage.vue
+++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/TabPage.vue
@@ -8,18 +8,22 @@
:class="['tab-item', { 'active': activeTabIndex === index }]"
@click="setActiveTab(index)"
>
-
-
{{ panel.title }}
-
+
+
+ {{ panel.title }}
+
+
+
+
@@ -103,7 +107,6 @@ const closeTab = (tabId) => {
display: flex;
align-items: center;
height: 26px;
- padding: 0 16px;
margin-left: 1px;
background: linear-gradient(to bottom, var(--vs-blue-top), var(--vs-blue-bottom));
border-bottom-color: #c7d2ea;
@@ -113,7 +116,6 @@ const closeTab = (tabId) => {
color: white;
font-size: 12px;
user-select: none;
- position: relative;
min-width: 120px;
}
@@ -123,7 +125,6 @@ const closeTab = (tabId) => {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
- margin-right: 20px; /* 为关闭按钮留出空间 */
}
.tab-item.active {
@@ -145,6 +146,11 @@ const closeTab = (tabId) => {
color: #333;
}
+.tab-buttons {
+ display: flex;
+ align-items: center;
+}
+
.button-icon {
background: transparent;
border: none;
@@ -152,7 +158,6 @@ const closeTab = (tabId) => {
display: flex;
align-items: center;
justify-content: center;
- flex-shrink: 0;
}
/* 确保在活动标签页中的按钮样式正确 */