From 9cb3a898c4b209d157bb98f37ae46c7d81e49069 Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Thu, 22 Oct 2026 19:25:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=A0=87=E7=AD=BE=E5=B8=83=E5=B1=80):=20?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E6=96=B0=E5=BB=BA=E6=A0=87=E7=AD=BE=E9=AB=98?= =?UTF-8?q?=E4=BA=AE=E6=AF=94=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/webui/ofdgo.css | 13 +++++++++++++ assets/webui/ofdgo.js | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/assets/webui/ofdgo.css b/assets/webui/ofdgo.css index 44f90dc..6594377 100644 --- a/assets/webui/ofdgo.css +++ b/assets/webui/ofdgo.css @@ -48,6 +48,7 @@ display: flex; min-width: 0; min-height: 0; + padding-right: 1px; overflow-x: auto; scrollbar-width: none; align-items: stretch; @@ -111,6 +112,18 @@ background: var(--accent-soft); } +.document-new-tab { + flex-basis: var(--titlebar-height, 36px); + width: var(--titlebar-height, 36px); + min-width: var(--titlebar-height, 36px); + align-self: stretch; + height: auto; +} + +.document-new-tab:focus-visible { + outline-offset: -2px; +} + .document-title-drag { flex: 1; min-width: 32px; diff --git a/assets/webui/ofdgo.js b/assets/webui/ofdgo.js index ba2e702..4d5531f 100644 --- a/assets/webui/ofdgo.js +++ b/assets/webui/ofdgo.js @@ -6447,8 +6447,8 @@ function revealPanelTab(container) { const selected = container.querySelector('[data-selected="true"]'); if (!selected || !container.clientWidth) return; const box = selected.getBoundingClientRect(), viewport = container.getBoundingClientRect(); - if (box.left < viewport.left) container.scrollLeft -= viewport.left - box.left; - else if (box.right > viewport.right) container.scrollLeft += box.right - viewport.right; + if (box.left < viewport.left) container.scrollLeft -= Math.ceil(viewport.left - box.left); + else if (box.right > viewport.right) container.scrollLeft += Math.ceil(box.right - viewport.right); } function renderPanelTabs(container, choices, value, change) {