From 1e12033f89a090f3b615fdd800b7fc42bc19b045 Mon Sep 17 00:00:00 2001 From: QLHazyCoder <2825305047@qq.com> Date: Fri, 29 May 2026 14:33:44 +0800 Subject: [PATCH] fix: restore compact sidepanel link controls --- sidepanel/sidepanel.css | 29 +++++++++++++++++----------- sidepanel/sidepanel.html | 4 ++-- sidepanel/sidepanel.js | 7 ++++--- tests/sidepanel-header-links.test.js | 6 +++++- 4 files changed, 29 insertions(+), 17 deletions(-) diff --git a/sidepanel/sidepanel.css b/sidepanel/sidepanel.css index cd83b77..613dd00 100644 --- a/sidepanel/sidepanel.css +++ b/sidepanel/sidepanel.css @@ -128,10 +128,22 @@ header { flex: 1; } -.header-repo-btn { +.header-repo-link { + color: var(--text-secondary); + font-size: 13px; + font-weight: 600; + line-height: 20px; + text-decoration: none; flex-shrink: 0; } +.header-repo-link:hover { + color: var(--text-primary); + text-decoration: underline; + text-underline-offset: 2px; +} + +.header-repo-link:focus-visible, .header-version-link:focus-visible { outline: 2px solid color-mix(in srgb, var(--blue) 28%, transparent); outline-offset: 2px; @@ -2927,27 +2939,22 @@ header { align-items: center; justify-content: flex-end; gap: 6px; - width: 76px; + width: 48px; flex-shrink: 0; } .step-manual-btn { - min-width: 48px; - min-height: 26px; - padding: 0 8px; + width: 20px; + height: 20px; + padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); - border-radius: var(--radius-sm); + border-radius: 999px; background: var(--bg-surface); color: var(--text-muted); cursor: pointer; - font-family: inherit; - font-size: 11px; - font-weight: 700; - line-height: 1; - white-space: nowrap; transition: all var(--transition); } .step-manual-btn:hover:not(:disabled) { diff --git a/sidepanel/sidepanel.html b/sidepanel/sidepanel.html index 19809da..2b2ce01 100644 --- a/sidepanel/sidepanel.html +++ b/sidepanel/sidepanel.html @@ -16,8 +16,8 @@