fix(changes): 「Git / 本轮文件」切换恢复会话页的下划线 Tabs

#1101 为摆脱宿主私有哈希类名(#1098)改用公开的 SegmentedControl,视觉随之退回灰底胶囊;#939 已按审阅意见改成官方会话页的下划线 Tabs,这一版把它丢了。

现在这条切换由插件自己的 changes.module.css 绘制:13px/500、未选中三级文字、选中态品牌色 + 2px 下划线压在页头分隔线上、24px 间距,ARIA 关联与左右方向键 / Home / End 漫游焦点照旧;不引用任何宿主私有类名。

Refs: #1235
This commit is contained in:
hairyfbot committed 2026-11-21 13:38:58 +08:00
1 parent 1b36babe07
commit 3f0f7c37e3
6 files changed
+97 -18

No files matched your search

+33
View File
@@ -15,6 +15,39 @@
.head { flex: none; display: flex; align-items: stretch; gap: 8px; height: 36px; padding: 0 8px 0 12px; border-bottom: 1px solid var(--dsw-alias-border-l1); }
.headAction { margin-left: auto; align-self: center; }
/* The lens switcher: the host conversation page's underline tabs, drawn here
from theme tokens. The host's Tabs is not a public component, and borrowing
its hashed CSS-module classes broke on host upgrades (#1098), so this strip
owns its sheet classes and mirrors the conversation header's metrics —
13px/500, tertiary ink that turns brand-coloured when selected, and a 2px
bar riding the header rule. The 24px gap is the reviewed spacing (#939). */
.lensTabs { flex: none; display: flex; align-items: stretch; gap: 24px; min-width: 0; }
.lensTab {
position: relative;
display: inline-flex;
align-items: center;
padding: 0;
border: none;
background: transparent;
font: var(--dsw-font-xs-13);
font-weight: 500;
color: var(--dsw-alias-label-tertiary);
cursor: pointer;
}
.lensTab::after {
content: '';
position: absolute;
right: 0;
bottom: -1px;
left: 0;
height: 2px;
border-radius: 2px;
background: transparent;
}
.lensTab[aria-selected='true'] { color: var(--dsw-alias-state-business-primary); }
.lensTab[aria-selected='true']::after { background: var(--dsw-alias-state-business-primary); }
.lensTab:focus-visible { outline: 2px solid var(--dsw-alias-interactive-bg-hover-accent); outline-offset: -2px; }
.lensBody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* Retained but not on screen: `display: flex` above would otherwise win over
the `hidden` attribute and two lenses would share the column. */