From 0ff72d35def31c3df278ed1c48f87aa00a714ec0 Mon Sep 17 00:00:00 2001 From: Aisland Date: Tue, 1 Sep 2026 21:26:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(console):=20=E7=BD=91=E6=A0=BC=E8=83=8C?= =?UTF-8?q?=E6=99=AF=20label=20=E4=B8=8D=E6=8D=A2=E8=A1=8C=EF=BC=88flex:no?= =?UTF-8?q?ne=20+=20nowrap=EF=BC=8C=E6=96=87=E5=AD=97=E6=A1=86=E6=8B=89?= =?UTF-8?q?=E5=AE=BD=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 01_content/lib/client.js | 3 ++- 01_content/src/client/styles.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/01_content/lib/client.js b/01_content/lib/client.js index 09ed64b..be40938 100644 --- a/01_content/lib/client.js +++ b/01_content/lib/client.js @@ -8187,7 +8187,8 @@ var css = xterm_default + "\n" + [ ".dsh-wt_dropWide{width:212px}", ".dsh-wt_dropTrash{flex:none;width:22px;height:22px;margin-right:2px;padding:0;border:none;border-radius:6px;background:transparent;color:var(--wt-text3);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease,color .15s ease}", ".dsh-wt_dropTrash:hover{background:rgba(244,63,94,.16);color:#f87171}", - ".dsh-wt_gridLabel{flex:1;min-width:0;font-size:12px;line-height:17px;color:var(--wt-text2);padding:2px 4px}", + ".dsh-wt_gridLabel{flex:none;white-space:nowrap;font-size:12px;line-height:17px;color:var(--wt-text2);padding:2px 2px 2px 4px}", + ".dsh-wt_gridHalf .dsh-wt_switch{margin-right:2px}", ".dsh-wt_switch{flex:none;position:relative;width:30px;height:17px;margin-right:4px;padding:0;border:none;border-radius:999px;background:rgba(255,255,255,.14);cursor:pointer;transition:background .15s ease}", ".dsh-wt_switchOn{background:#4f8ef7}", ".dsh-wt_switchKnob{position:absolute;top:2px;left:2px;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:left .18s cubic-bezier(.22,.61,.36,1)}", diff --git a/01_content/src/client/styles.ts b/01_content/src/client/styles.ts index ee76fc6..6d9c906 100644 --- a/01_content/src/client/styles.ts +++ b/01_content/src/client/styles.ts @@ -435,7 +435,8 @@ export const css = xtermCss + '\n' + [ '.dsh-wt_dropWide{width:212px}', '.dsh-wt_dropTrash{flex:none;width:22px;height:22px;margin-right:2px;padding:0;border:none;border-radius:6px;background:transparent;color:var(--wt-text3);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease,color .15s ease}', '.dsh-wt_dropTrash:hover{background:rgba(244,63,94,.16);color:#f87171}', - '.dsh-wt_gridLabel{flex:1;min-width:0;font-size:12px;line-height:17px;color:var(--wt-text2);padding:2px 4px}', + '.dsh-wt_gridLabel{flex:none;white-space:nowrap;font-size:12px;line-height:17px;color:var(--wt-text2);padding:2px 2px 2px 4px}', + '.dsh-wt_gridHalf .dsh-wt_switch{margin-right:2px}', '.dsh-wt_switch{flex:none;position:relative;width:30px;height:17px;margin-right:4px;padding:0;border:none;border-radius:999px;background:rgba(255,255,255,.14);cursor:pointer;transition:background .15s ease}', '.dsh-wt_switchOn{background:#4f8ef7}',