From 7e44317b94fe8c85c89921bf0850239eed487ebe Mon Sep 17 00:00:00 2001 From: zqm Date: Wed, 5 Nov 2025 15:20:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96TabPage=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E5=B8=83=E5=B1=80=EF=BC=9A=E4=BD=BF=E7=94=A8justify-content:?= =?UTF-8?q?=20space-between=E5=AE=9E=E7=8E=B0=E6=A0=87=E9=A2=98=E9=9D=A0?= =?UTF-8?q?=E5=B7=A6=E6=98=BE=E7=A4=BA=EF=BC=8C=E5=85=B3=E9=97=AD=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E9=9D=A0=E5=8F=B3=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoRobot/Windows/Robot/Web/src/DockLayout/TabPage.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/TabPage.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/TabPage.vue index f19343c..65a57d8 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/TabPage.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/TabPage.vue @@ -100,6 +100,7 @@ const closeTab = (tabId) => { .tab-item { display: flex; align-items: center; + justify-content: space-between; height: 26px; padding: 0 16px; margin-left: 1px; @@ -112,8 +113,7 @@ const closeTab = (tabId) => { font-size: 12px; user-select: none; position: relative; - min-width: fit-content; - flex: 0 0 auto; + width: fit-content; } .tab-title { @@ -122,6 +122,8 @@ const closeTab = (tabId) => { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; + flex: 1; + margin-right: 8px; } .tab-item.active { @@ -144,7 +146,6 @@ const closeTab = (tabId) => { } .button-icon { - margin-left: 8px; margin-right: -8px; background: transparent; border: none;