Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

fix(ui): 复核分类改次级菜单,扫描提示外挂,图例小卡直接是灰片

longmeidao151ad11a0992
diff --git a/frontend/src/board-controls.ts b/frontend/src/board-controls.ts
index 050d5a805..adc30c0ce 100644
--- a/frontend/src/board-controls.ts
+++ b/frontend/src/board-controls.ts
@@ -80,11 +80,17 @@ export function wireBoardSegments(root:ParentNode) {
/** 排名条与雷达图进入可见区域后才从零长出(1.2 秒,与统计圆环同一条曲线);减少动态效果时直接显示。 */
export function wireGrowingCharts(root:ParentNode) {
- const selector='.board-ranked-chart,.board-radar,.tasteranks';
+ const selector='.board-ranked-chart,.board-radar,.tasteranks,.board-heat-card,.board-sankey-card';
const charts=[...root.querySelectorAll<HTMLElement>(selector)];
if(root instanceof HTMLElement&&root.matches(selector))charts.push(root);
charts.forEach(chart=>{
if(chart.hasAttribute('data-board-chart'))return;chart.dataset.boardChart='true';
+ /* 长完就钉住终态:这些图表大多住在 tab 面板里,面板一藏一显 display 就换过一轮,
+ 动画会跟着重头再放。等同一棵子树里没有还在跑的动画再钉,避免掐掉后半段。 */
+ chart.addEventListener('animationend',()=>{
+ if(chart.getAnimations?.({subtree:true}).some(animation=>animation.playState==='running'))return;
+ chart.classList.add('board-chart-settled');
+ });
const reveal=()=>chart.classList.add('board-chart-visible');
if(typeof IntersectionObserver==='undefined'||matchMedia('(prefers-reduced-motion: reduce)').matches){reveal();return}
const observer=new IntersectionObserver(entries=>{if(entries.some(entry=>entry.isIntersecting)){observer.disconnect();reveal()}},{threshold:.15});
diff --git a/frontend/src/board-state-preview.tsx b/frontend/src/board-state-preview.tsx
index 4d57d469a..eb9f32c43 100644
--- a/frontend/src/board-state-preview.tsx
+++ b/frontend/src/board-state-preview.tsx
@@ -34,7 +34,7 @@ function StatePreview() {
{!['running','preparing','disconnected','retrying','reconnected','failed'].includes(state)&&<p>此状态不常驻全局横幅。</p>}
</section>
<section><h2>数据管理 · 扫描与采集</h2>
- {state==='loading'?<Html html={cleanupSkeletonHtml()}/>:<div class="cleanupgrid"><section id="libraryProcessing" class="cleanupfieldset"><LibraryProcessing key={`${state}-${revision}-${value}`} data={data} error={problem} preview toast={()=>{}}/></section></div>}
+ {state==='loading'?<Html html={cleanupSkeletonHtml()}/>:<div class="cleanupgrid"><div id="libraryProcessing" class="cleanupscraping"><LibraryProcessing key={`${state}-${revision}-${value}`} data={data} error={problem} preview toast={()=>{}}/></div></div>}
{state==='complete'&&<Html html={noteHtml('已完成扫描与资料采集',{variant:'success',label:'任务完成'})}/>}
{state==='expired'&&<Html html={noteHtml('任务状态已失效,请重新发起任务',{variant:'warning'})}/>}
{state==='paused'&&<span class="sbadge paused">已暂停</span>}
diff --git a/frontend/src/islands/library-processing.tsx b/frontend/src/islands/library-processing.tsx
index bfa900ba3..eff21ea53 100644
--- a/frontend/src/islands/library-processing.tsx
+++ b/frontend/src/islands/library-processing.tsx
@@ -65,26 +65,28 @@ export function LibraryProcessing({ data, error, toast, onComplete, mode, monito
value:state.checked || 0,...(state.status === 'running' && state.total !== undefined ? {max:state.total} : {}),
})}} />;
}
+ /* 进度条讲的是卡片上那个按钮此刻在做什么,留在卡片里;结果和故障讲的是这一趟任务
+ 的下场,挂在卡片外面,和链接管理、资源同步那两块同一个写法。 */
return <>
- <div class="geist-fieldset-content library-processing">
- <div dangerouslySetInnerHTML={{ __html: fieldsetTitle('cleanupScrapingTitle', '扫描与采集') }} />
- <p>扫描媒体文件夹,导入已有资料,采集缺失信息。</p>
- <div aria-live="polite">
- {state.status === 'running' && <>
- <div dangerouslySetInnerHTML={{ __html: state.total
- ? jobProgressHtml(`${state.stage || '正在处理'} · ${state.checked || 0} / ${state.total} 个视频`, state.checked || 0, state.total)
- : loadingDotsHtml(state.stage || '正在处理') }} />
- </>}
- {(problem || state.status === 'failed') && <div role="alert" onClick={event=>{if((event.target as HTMLElement).closest('[data-note-action]'))void start();}} dangerouslySetInnerHTML={{ __html: noteHtml(problem || state.error || '处理未完成,请重试', { variant: 'error',filled:true,actionLabel:state.status==='failed'?'重试未完成项':'' }) }} />}
- {state.status === 'failed' && !!state.issues?.length && <ul>{state.issues.slice(0, 20).map(issue =>
- <li>{issue.asset_id ? <a href={`/item/${issue.asset_id}`}>查看视频</a> : null}{issue.asset_id ? ':' : ''}{issue.message}</li>)}</ul>}
- {receipt && <div class="library-processing-result" dangerouslySetInnerHTML={{ __html: noteHtml(`已扫描 ${state.scanned || 0} 个文件,识别 ${state.identified || 0} 个番号,整理 ${state.candidates || 0} 组资料候选。`, { variant: 'success', label: '处理完成' }) }} />}
+ <section class="cleanupfieldset" data-geist-fieldset aria-labelledby="cleanupScrapingTitle">
+ <div class="geist-fieldset-content library-processing">
+ <div dangerouslySetInnerHTML={{ __html: fieldsetTitle('cleanupScrapingTitle', '扫描与采集') }} />
+ <p>扫描媒体文件夹,导入已有资料,采集缺失信息。</p>
+ {state.status === 'running' && <div aria-live="polite" dangerouslySetInnerHTML={{ __html: state.total
+ ? jobProgressHtml(`${state.stage || '正在处理'} · ${state.checked || 0} / ${state.total} 个视频`, state.checked || 0, state.total)
+ : loadingDotsHtml(state.stage || '正在处理') }} />}
</div>
+ <footer class="geist-fieldset-footer" data-geist-fieldset-footer>
+ <a class="geist-button" href="/scraping">采集来源</a>
+ {!!state.candidates && <a class="geist-button" href="/review">复核资料</a>}
+ {state.status !== 'failed' && <button ref={button} type="button" class="geist-button primary" onClick={() => void start()}>扫描并补全资料</button>}
+ </footer>
+ </section>
+ <div class="library-processing-outcome" aria-live="polite">
+ {(problem || state.status === 'failed') && <div role="alert" onClick={event=>{if((event.target as HTMLElement).closest('[data-note-action]'))void start();}} dangerouslySetInnerHTML={{ __html: noteHtml(problem || state.error || '处理未完成,请重试', { variant: 'error',filled:true,actionLabel:state.status==='failed'?'重试未完成项':'' }) }} />}
+ {state.status === 'failed' && !!state.issues?.length && <ul>{state.issues.slice(0, 20).map(issue =>
+ <li>{issue.asset_id ? <a href={`/item/${issue.asset_id}`}>查看视频</a> : null}{issue.asset_id ? ':' : ''}{issue.message}</li>)}</ul>}
+ {receipt && <div class="library-processing-result" dangerouslySetInnerHTML={{ __html: noteHtml(`已扫描 ${state.scanned || 0} 个文件,识别 ${state.identified || 0} 个番号,整理 ${state.candidates || 0} 组资料候选。`, { variant: 'success', label: '处理完成' }) }} />}
</div>
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer>
- <a class="geist-button" href="/scraping">采集来源</a>
- {!!state.candidates && <a class="geist-button" href="/review">复核资料</a>}
- {state.status !== 'failed' && <button ref={button} type="button" class="geist-button primary" onClick={() => void start()}>扫描并补全资料</button>}
- </footer>
</>;
}
diff --git a/frontend/src/review-bulk.ts b/frontend/src/review-bulk.ts
index 72c5e1874..b82866e1f 100644
--- a/frontend/src/review-bulk.ts
+++ b/frontend/src/review-bulk.ts
@@ -13,11 +13,21 @@ export function updateReviewSticky(root: HTMLElement | null) {
const main = root.closest('main');
if (main) root.style.setProperty('--review-edge', getComputedStyle(main).paddingLeft);
root.style.setProperty('--review-controls-height', `${controls.getBoundingClientRect().height}px`);
- for (const bar of [controls, ...root.querySelectorAll<HTMLElement>('.reviewgroupbar')]) {
+ const bars = [controls, ...root.querySelectorAll<HTMLElement>('.reviewgroupbar')];
+ for (const bar of bars) {
const top = parseFloat(getComputedStyle(bar).top);
bar.classList.toggle('is-stuck', bar.offsetParent !== null && window.scrollY > 0 &&
Number.isFinite(top) && Math.abs(bar.getBoundingClientRect().top - top) <= 1);
}
+ /* 粘住的那几行合成一块玻璃,由 `.review::before` 画。每行各挂一层 backdrop-filter 的话,
+ 每层只糊自己身后那一段页面,两行相接处就显出两种颜色,读起来是上下两个框。 */
+ const stuck = bars.filter(bar => bar.classList.contains('is-stuck'));
+ root.classList.toggle('review-is-stuck', stuck.length > 0);
+ if (!stuck.length) return;
+ const head = stuck[0].getBoundingClientRect(), foot = stuck[stuck.length - 1].getBoundingClientRect();
+ root.style.setProperty('--review-pane-left', `${head.left}px`);
+ root.style.setProperty('--review-pane-width', `${head.width}px`);
+ root.style.setProperty('--review-pane-height', `${foot.bottom - head.top}px`);
}
export function reviewGroupingOptions(rows: ReviewRow[], metadata: boolean): string[][] {
diff --git a/scripts/vendor_web_dependencies.mjs b/scripts/vendor_web_dependencies.mjs
index dddb3ae5c..7c8ad4880 100644
--- a/scripts/vendor_web_dependencies.mjs
+++ b/scripts/vendor_web_dependencies.mjs
@@ -119,6 +119,8 @@ const lucideIcons = new Map([
["folder-cog", "folder-cog"],
// 配置页每行文件夹的「选择文件夹」:弹系统对话框去挑。`folder-open` 归「打开位置」,不兼任。
["folder-search", "folder-search"],
+ // 数据管理页「空文件夹」那张卡的标识:说的是目录本身,既不是打开它,也不是去里面找。
+ ["folder", "folder"],
["sun", "sun"], ["moon", "moon"],
// 小窗播放:右键菜单里「迷你播放器」是缩进角落的小屏,小窗上的「展开」是对角撑开;
// `maximize` 归 JAV 大图版式,不兼任。「循环播放」与「复制视频网址」照 Lucide 本名。
diff --git a/tests/test_follow_web.py b/tests/test_follow_web.py
index 8467ac725..cbe95189c 100644
--- a/tests/test_follow_web.py
+++ b/tests/test_follow_web.py
@@ -2183,7 +2183,7 @@ class FollowWebSourceTests(unittest.TestCase):
"""
self.assertNotIn('.followmanage .board-follow-list .fsource.frow+.fsource.frow{border-top:',
(ROOT / 'web' / 'board.css').read_text(encoding='utf-8'))
- self.assertBoardContains('.followmanage .frowicon svg{stroke-width:1.8}')
+ self.assertBoardContains('.followmanage .frowicon svg{stroke-width:2}')
self.assertBoardContains('.faliasrow>.favatar{width:24px;height:24px;font-size:var(--fs-xs)}')
self.assertPageContains('<div class="faliasrow">${followAliasAvatar(group)}<b>${esc(group.canonical_name)}</b>')
self.assertPageContains("const sources=(followData?.sources||[]).filter(source=>source.author_key===`name:${group.canonical_key}`);")
@@ -2241,8 +2241,9 @@ class FollowWebSourceTests(unittest.TestCase):
".followmanage .ftableframe{border:1px solid var(--color-separator-border);border-radius:var(--surface-radius);"
"background:var(--color-background-primary-default);overflow:hidden}"
".followmanage .ftablewrap{border-radius:0;background:transparent}.followmanage .ftable th{border-top:0}")
- self.assertBoardContains(
- ".followmanage .fmain>.fsec:has(>.fsecfoot) .ftableframe{border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}")
+ # 外框四边自己收口:它离卡片脚还隔着一层内边距,缺了底边和下面两个圆角就没有收尾。
+ self.assertNotIn(".followmanage .fmain>.fsec:has(>.fsecfoot) .ftableframe",
+ (ROOT / "web" / "board.css").read_text(encoding="utf-8"))
self.assertBoardContains(
".followmanage .ftable tr.fsource.selected,.followmanage .ftable tr.fsource.selected:hover"
"{background:color-mix(in srgb,var(--tungsten) 8%,var(--color-background-primary-default));border-color:var(--color-separator-border);box-shadow:none}")
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index 0b15ba366..50025c0d4 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -1899,7 +1899,7 @@ class WebUiSourceTests(unittest.TestCase):
"gap:2px;min-width:0}")
self.assertPageContains("svg.externalmark{width:1.15em;height:1.15em;flex:none;"
"align-self:center;")
- self.assertPageContains("stroke:currentColor;fill:none;stroke-width:2.25;"
+ self.assertPageContains("stroke:currentColor;fill:none;stroke-width:2;"
"stroke-linecap:round;stroke-linejoin:round}")
# 尺寸和间距不许再按页面分档:差的不是 1px,是同一个意思有八个长相。
for stale in (".fsourcelink svg{", ".fcredget svg{", ".fpicksearch b svg{",
@@ -4501,7 +4501,7 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains(".reviewpickitem{display:inline-flex;align-items:center;flex:none;margin:0;user-select:none}")
self.assertNotIn("reviewSelectionController", self.page)
self.assertNotIn("selection.active=selectMode", self.page)
- self.assertPageContains(".reviewbulktoolbar{width:100%;padding-block:0;margin-bottom:0}")
+ self.assertPageContains(".reviewbulktoolbar{padding-block:0;margin-bottom:0}")
self.assertPageContains('class="reviewcontrols"')
self.assertPageContains("updateReviewSticky($('.review'))")
self.assertPageContains('.reviewgroupbar.is-stuck h3{margin-right:0}')
@@ -4902,7 +4902,7 @@ class WebUiSourceTests(unittest.TestCase):
"CENTERED_CLEANUP_PAGES.has(decodeURIComponent(location.pathname)));")
self.assertPageLacks("document.body.classList.toggle('cleanup-layout',current==='cleanup')")
# 窄列本体仍在 hub 上,这两条规则本身不动。
- self.assertPageContains(".cleanuppage{width:min(812px,100%);margin:0 auto}")
+ self.assertPageContains(".cleanuppage{width:min(812px,100%);margin:0 auto;display:grid;gap:32px}")
self.assertPageContains(
".cleanup-layout .geist-breadcrumb,.cleanup-layout .managetitle,.cleanup-layout .pagelede")
@@ -5379,10 +5379,8 @@ class WebUiSourceTests(unittest.TestCase):
self.assertIn("body.configuration-layout .configpage :is(.gselectfield,.geist-input,input.geist-input,.board-icon-trigger),body .followmanage .faddform .geist-search input{background:var(--color-background-primary-default)}", board)
self.assertIn("body .review{width:100%;max-width:var(--board-content);margin:0 auto;box-sizing:border-box}", board)
self.assertIn("body .review .reviewcontrols{position:static;", board)
- self.assertIn("body .review .reviewbulktoolbar{position:sticky;top:var(--topH);z-index:60;margin:0 -16px 16px;padding:12px 16px;", board)
- self.assertIn("body .review .reviewgroupbar{margin-inline:-16px;padding-inline:16px}", board)
- self.assertIn("body .review:has(.reviewgroupbar.is-stuck) .reviewbulktoolbar.is-stuck{border-radius:20px 20px 0 0;box-shadow:inset 0 1px 0 var(--glass-rim)}", board)
- self.assertIn("body .review .reviewgroupbar.is-stuck{background:var(--glass-fill);border-radius:0 0 20px 20px;", board)
+ self.assertIn("body .review .reviewbulktoolbar{position:sticky;top:var(--topH);z-index:60;width:auto;", board)
+ self.assertIn("body .review .reviewgroupbar{margin-inline:calc(-1 * var(--review-edge,16px));", board)
self.assertIn(".closestage,.closestage:hover{background:rgba(0,0,0,.6);color:#fff}", board)
self.assertIn("body .batchbar button[hidden],body .batchbar button.danger[hidden]{display:none}", board)
self.assertIn("body .batchbar button.danger{", board)
@@ -5442,7 +5440,7 @@ class WebUiSourceTests(unittest.TestCase):
"border-radius:10px;background:var(--color-background-primary-default);transition:background-color .15s ease,border-color .15s ease}", board)
self.assertIn(".followmanage .board-follow-list .fsource.frow:hover{background:var(--color-background-primary-hover)}", board)
self.assertIn(".followmanage .fsechead .iconswitch[data-board-segments]>label{width:34px;height:30px;border-radius:7px}", board)
- self.assertIn(".followmanage .fsechead .iconswitch svg{width:16px;height:16px;stroke-width:1.8}", board)
+ self.assertIn(".followmanage .fsechead .iconswitch svg{width:16px;height:16px;stroke-width:2}", board)
self.assertIn("--color-border-checkbox-default:#d4d4d4;--color-border-checkbox-hover:#a3a3a3", board)
self.assertIn("--color-border-checkbox-default:#404040;--color-border-checkbox-hover:#737373", board)
self.assertIn(".pcheck:hover>span,label:hover>.pcheck>span{border-color:var(--color-border-checkbox-hover);background:var(--color-background-primary-default)}", board)
@@ -5471,8 +5469,9 @@ class WebUiSourceTests(unittest.TestCase):
self.assertIn(".count .sorts .iconswitch[data-board-segments]>label,.entitycollectionhead .sorts .iconswitch[data-board-segments]>label"
"{height:24px;min-height:24px;width:30px;padding:0;border-radius:5px}", board)
self.assertIn(".count .sorts,.entitycollectionhead .sorts{padding:0 2px}", board)
- self.assertIn(".insighttabs,.reviewtabs{display:flex;align-items:center;gap:4px;width:100%;", board)
- self.assertIn(".insighttabs button[aria-selected=\"true\"],.reviewtabs button[aria-selected=\"true\"]{background:none;color:var(--tungsten);font:var(--board-body-medium)}", board)
+ # 下划线只归洞察页;复核分类是次级菜单,判据在 test_the_review_categories_look_like_a_secondary_menu。
+ self.assertIn(".insighttabs{display:flex;align-items:center;gap:4px;width:100%;", board)
+ self.assertIn(".insighttabs button[aria-selected=\"true\"]{background:none;color:var(--tungsten);font:var(--board-body-medium)}", board)
self.assertIn(".insightpanel>header h3,.insightcopy>span{margin:0;font:var(--board-heading);color:var(--color-text-primary)}", board)
self.assertIn("body .tasterank:is(button):hover,body .board-rank-list .tasterank:hover{border-color:transparent;"
"background:transparent}", board)
@@ -7183,6 +7182,9 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains('<symbol id="i-folder-cog" viewBox="0 0 24 24">')
# 配置页每行文件夹的「选择文件夹」弹系统对话框去挑:`folder-search`。`folder-open` 归「打开位置」。
self.assertPageContains('<symbol id="i-folder-search" viewBox="0 0 24 24">')
+ # 数据管理页「空文件夹」那张卡说的是目录本身:不是打开它,也不是去里面找。
+ self.assertPageContains("'空文件夹':'folder',")
+ self.assertPageContains('<symbol id="i-folder" viewBox="0 0 24 24">')
self.assertIn('href="#i-folder-search"', (Path(__file__).resolve().parents[1] / "frontend" / "src" / "islands" / "configuration.tsx")
.read_text(encoding="utf-8"))
# 主题三档各归各的:太阳是浅色、月亮是深色;跟随系统那档说的是「照这台设备走」,
@@ -7223,6 +7225,242 @@ class WebUiSourceTests(unittest.TestCase):
self.assertIn('viewBox: "10.4 10.5 259.2 259.2"', generator)
self.assertIn('const SPERM_VIEWBOX = "1.5 1.2 21.2 21.2";', generator)
+ def test_every_glyph_is_drawn_at_one_stroke_weight(self):
+ """字形描边只有一档:2。粗细不是尺寸的调节旋钮。
+
+ Lucide、Phosphor、Remix 都按 24 的画格、2 的描边出图,尺寸差异交给
+ `width`/`height` 表达。同一行里并排的两枚字形必须一样粗,包括那些自己
+ 不写描边、会落到 SVG 默认 1 的规则。
+
+ 例外都不是字形:勾选、仪表弧、进度环、雷达底格和圆环本身,它们的线宽是
+ 图形语义的一部分,逐条点名。
+ """
+ # 线宽属于图形本身的那几处:勾的笔画、弧的粗细、底格的细线。
+ # 勾收两个值是分层的结果:BoardUI 那一层把画格放到 14,笔画跟着收一档。
+ not_a_glyph = {
+ ".reviewasset .pickmark svg": {"3"},
+ ".pcheck>span svg": {"2", "2.5"},
+ ".geist-gauge svg": {"3"},
+ ".board-job-progress circle": {"2.5"},
+ ".board-radar-grid": {"1"},
+ ".board-ring-value[data-active=true]": {"18"},
+ }
+ board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
+ css = re.sub(r"/\*.*?\*/", "", self.css + board, flags=re.S)
+ for selector, body in re.findall(r"([^{}]+)\{([^{}]*)\}", css):
+ found = re.search(r"(?<![-\w])stroke-width:\s*([^;}]+)", body)
+ if not found:
+ continue
+ selector, width = selector.strip(), found.group(1).strip()
+ self.assertIn(width, not_a_glyph.get(selector, {"2"}),
+ f"{selector} 的描边是 {width}")
+ # 下拉框的前缀图标自己写死一份,不靠继承。
+ self.assertIn("stroke:currentColor;fill:none;stroke-width:2}", self.css)
+
+ def test_the_review_toolbar_and_group_bar_read_as_one_box(self):
+ """复核页顶上那两行是一个框:等宽、常驻、中间不划线。
+
+ 工具条此前写死 `width:100%` 再配负外边距,右边就比分组条短一个页边距;
+ 底色只在 `is-stuck` 时才有,刚进页面看上去根本没有框。现在两行都用同一个
+ `--review-edge` 出血、同一层 `--ground` 底,圆角上下各收一半;只有分组条
+ 自己滚上去顶住时才各自收口。
+ """
+ board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
+ self.assertIn("body .review .reviewbulktoolbar{position:sticky;top:var(--topH);z-index:60;width:auto;"
+ "margin:0 calc(-1 * var(--review-edge,16px));padding:12px var(--review-edge,16px);"
+ "background:var(--ground);border-radius:20px 20px 0 0}", board)
+ self.assertIn("body .review .reviewgroupbar{margin-inline:calc(-1 * var(--review-edge,16px));"
+ "padding-inline:var(--review-edge,16px);background:var(--ground);border:0;"
+ "border-radius:0 0 20px 20px}", board)
+ # 下面那些分组各自成框:上一个可见分组和它之间隔着一整屏卡片。
+ self.assertIn("body .review .reviewgroup:not([hidden])~.reviewgroup:not([hidden])"
+ ">.reviewgroupbar{border-radius:20px}", board)
+ self.assertNotIn(".reviewbulktoolbar{width:100%", self.css)
+
+ def test_a_selectable_follow_row_keeps_its_own_border_on_every_edge(self):
+ """关注列表进选择态后,行与行之间那条线是卡片自己的上边框。
+
+ 卡片模式下作者卡内还有一条 `--line-soft` 的分隔线,选择器比卡片边框更长,
+ 压掉的正是第二行起的上边框——在深色底上 `--line-soft` 几乎看不见,读起来
+ 就是「横线没了」。表格模式下行是 `tr`,卡片那套边框圆角落上去会和外框画出
+ 两条重叠的竖线,所以那套只给非 `tr`。
+ """
+ board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
+ self.assertIn(".followmanage .fauthor .fsource.frow:not(:has([data-follow-select]))"
+ "+.fsource.frow:not(:has([data-follow-select])){border-top:1px solid var(--line-soft)}", board)
+ self.assertIn(".followmanage .fsource:has([data-follow-select]):not(tr){"
+ "border:1px solid var(--color-border-button-default);border-radius:10px;", board)
+ # 表格外框自己收口:它离卡片脚还有一层内边距,去掉下边框就没有收尾。
+ self.assertNotIn(".followmanage .fmain>.fsec:has(>.fsecfoot) .ftableframe", board)
+
+ def test_the_alias_avatar_stays_a_circle_when_there_is_no_picture(self):
+ """取不到头像时那个空位仍然是一个圆。
+
+ 别名行里头像和别名组都是直接子 `span`,同一条规则把两者都摊成 `flex:1`,
+ 兜底头像于是被拉成一颗药丸;有图那一枚是 `<img>`,所以只在取不到时才露馅。
+ """
+ self.assertIn(".faliassuggest>span:not(.favatar),.faliasrow>span:not(.favatar)"
+ "{display:flex;align-items:center;gap:7px;min-width:0;flex:1;flex-wrap:wrap}", self.css)
+
+ def test_a_finished_chart_does_not_grow_again_when_its_tab_comes_back(self):
+ """长完的图表钉住终态,切回这个 tab 不重放。
+
+ 面板靠 `hidden` 收起,再显示时 `display` 从 none 换回来,CSS 动画会整段重放:
+ 读起来就是每点一次 tab,条形图重新长一次。等同一棵子树里没有还在跑的动画
+ 再打标,避免掐掉带延迟的后半段。
+ """
+ board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
+ self.assertIn(".board-ranked-chart.board-chart-settled .board-rank-fill,"
+ ".tasteranks.board-chart-settled .taste-rank-track i,"
+ ".board-radar.board-chart-settled .board-radar-value"
+ "{animation:none;transform:none;opacity:1}", board)
+ self.assertIn(".board-heat-card.board-chart-settled [data-heat-value],"
+ ".board-sankey-card.board-chart-settled .board-sankey-links path{animation:none}", board)
+ controls = (Path(__file__).resolve().parents[1]
+ / "frontend" / "src" / "board-controls.ts").read_text(encoding="utf-8")
+ self.assertIn("const selector='.board-ranked-chart,.board-radar,.tasteranks,"
+ ".board-heat-card,.board-sankey-card';", controls)
+ self.assertIn("chart.classList.add('board-chart-settled');", controls)
+ self.assertIn("if(chart.getAnimations?.({subtree:true})"
+ ".some(animation=>animation.playState==='running'))return;", controls)
+
+ def test_the_data_cleanup_page_spaces_its_blocks_the_same_way(self):
+ """数据管理页三块内容之间是同一个间距。
+
+ 页面此前是块级流:卡片网格靠自己的下内边距撑出 32px,底下两个 section 之间
+ 什么也没有,贴在一起。间距交给页面这一层的 `gap`,网格不再兼职。
+ """
+ self.assertIn(".cleanuppage{width:min(812px,100%);margin:0 auto;display:grid;gap:32px}", self.css)
+ self.assertIn(".cleanupgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}", self.css)
+ # 结果区空着时也占一条网格轨道,区块底部会凭空多出一个间距。
+ self.assertIn("#linkCheckResult:empty,#resourceSyncResult:empty{display:none}", self.css)
+ board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
+ self.assertIn(".cleanupgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}", board)
+ # 这两个 section 的标题也走同一条字阶,不留浏览器默认的 700。
+ self.assertIn(".followmanage .fsechead h3,.resourcesync>h2{font:var(--board-heading)", board)
+
+ def test_a_scan_card_keeps_its_outcome_outside_the_box(self):
+ """扫描与采集的结果和故障挂在卡片外面,和链接管理、资源同步一个写法。
+
+ 那三块讲的都是「这一趟任务的下场」,一块写在框里、两块写在框外,读起来是两种
+ 不同的东西。`#libraryProcessing` 因此是这一格本身,卡片是它的第一个孩子,
+ 提示是第二个,间距由这一格的 `gap` 给。进度条留在卡片里:它说的是卡片上那个
+ 按钮此刻在做什么。
+ """
+ self.assertPageContains('<div class="cleanupscraping" id="libraryProcessing">')
+ self.assertPageContains('<section class="cleanupfieldset" data-geist-fieldset aria-labelledby="cleanupScrapingTitle">')
+ island = (Path(__file__).resolve().parents[1]
+ / "frontend" / "src" / "islands" / "library-processing.tsx").read_text(encoding="utf-8")
+ self.assertIn('<div class="library-processing-outcome" aria-live="polite">', island)
+ head, outcome = island.split('<div class="library-processing-outcome"', 1)
+ self.assertIn("jobProgressHtml(", head.split("return <>", 1)[1])
+ for banner in ("noteHtml(problem", "library-processing-result"):
+ self.assertIn(banner, outcome)
+ board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
+ self.assertIn(".cleanupgrid>#libraryProcessing{grid-column:1/-1;display:grid;gap:16px}", board)
+ self.assertIn("#libraryProcessing>.cleanupfieldset{display:grid;grid-template-columns:1fr auto;align-items:center}", board)
+ # 一格里空着的第二行照样占一条轨道,卡片底下会凭空多出一个间距。
+ self.assertIn(".library-processing-outcome:empty{display:none}", board)
+
+ def test_the_pinned_review_bars_share_one_pane_of_glass(self):
+ """粘住的工具条和分组条是一块玻璃,中间没有接缝。
+
+ 每条横条各挂一层 `backdrop-filter` 的话,每层只糊自己身后那一段页面:工具条
+ 身后是一排卡片,分组条身后是另一排,两段颜色不同,接缝就成了一条明显的分界。
+ 玻璃因此由 `.review::before` 画一块,铺满当前粘住的那几行;两条横条粘住后
+ 只剩内容,不带底也不带影。
+ """
+ board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
+ self.assertIn('body .review.review-is-stuck::before{content:"";position:fixed;top:var(--topH);'
+ "left:var(--review-pane-left,0);width:var(--review-pane-width,0);"
+ "height:var(--review-pane-height,0);z-index:58;pointer-events:none;border-radius:20px;"
+ "background:var(--glass-fill);", board)
+ self.assertIn("body .review :is(.reviewbulktoolbar,.reviewgroupbar).is-stuck{background:transparent;"
+ "backdrop-filter:none;-webkit-backdrop-filter:none;border:0;box-shadow:none}", board)
+ # 玻璃压在两条横条底下:58 低于分组条的 59 和工具条的 60。
+ self.assertPageContains(".reviewgroupbar{position:sticky;top:calc(var(--topH) + var(--review-controls-height,0px));z-index:59;")
+ for fallback in ("html.board-high-contrast .review.review-is-stuck::before{background:var(--ground)",
+ "@media(prefers-reduced-transparency:reduce){body .review.review-is-stuck::before{background:var(--ground)"):
+ self.assertIn(fallback, board)
+ bulk = (Path(__file__).resolve().parents[1] / "frontend" / "src" / "review-bulk.ts").read_text(encoding="utf-8")
+ self.assertIn("root.classList.toggle('review-is-stuck', stuck.length > 0);", bulk)
+ self.assertIn("const head = stuck[0].getBoundingClientRect(), foot = stuck[stuck.length - 1].getBoundingClientRect();", bulk)
+ for name, edge in (("left", "head.left"), ("width", "head.width"), ("height", "foot.bottom - head.top")):
+ self.assertIn(f"root.style.setProperty('--review-pane-{name}', `${{{edge}}}px`);", bulk)
+
+ def test_the_review_categories_look_like_a_secondary_menu(self):
+ """复核分类是一排药丸,不是一排下划线 Tab。
+
+ 底下那一屏是同一份复核队列换了个筛法。十枚下划线并排会把它读成十块各不相干的
+ 内容;药丸走全站横排互斥那一套——选中只有填充,未选中悬停只提文字色。
+ """
+ board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
+ self.assertIn(".reviewtabs button{height:32px;padding:0 12px;gap:6px;border-radius:var(--control-radius);", board)
+ self.assertIn(".reviewtabs button:hover{background:none;color:var(--color-text-primary)}", board)
+ self.assertIn(".reviewtabs button[aria-selected=\"true\"]{background:var(--picked);color:var(--color-text-primary);", board)
+ # 下划线那一套只留给洞察页:那里并排的确实是三块各自成篇的内容。
+ self.assertNotIn(".insighttabs,.reviewtabs{", board)
+ self.assertIn(".insighttabs{display:flex;align-items:center;gap:4px;width:100%;min-height:0;margin:0;padding:0;border:0;"
+ "border-bottom:1px solid var(--color-border-button-default);", board)
+ # 键盘行为仍是 tablist:方向键在同一条里移动焦点。
+ self.assertPageContains('<div class="reviewtabs" role="tablist" aria-label="复核分类">')
+
+ def test_the_toast_glyph_is_stroked_and_sits_level_with_its_line(self):
+ """Toast 里那枚勾是描边件,和文字同一条中线。
+
+ 不写 `fill:none` 的话它按 `fill` 的初值涂黑,一个勾会糊成实心箭头。文字靠
+ `align-items` 对齐,不靠给 `<p>` 加上下内边距去凑——字数换行时那个凑法就散了。
+ """
+ board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
+ self.assertIn(".toast{position:relative;align-items:center;", board)
+ self.assertIn(".board-notification-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}", board)
+ self.assertIn(".toast p{margin:0}", board)
+ self.assertPageContains("""<span class="board-notification-icon" aria-hidden="true">${icon(alert?'circle-alert':'check')}</span>""")
+
+ def test_the_shorts_band_is_told_apart_by_its_fill_not_a_line(self):
+ """竖屏带靠底色和网格区分,不描一圈线。
+
+ 它嵌在两段无边框的网格中间,一条线会把它读成一个可以点开的容器。
+ """
+ board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
+ self.assertIn(".shorts-inline{border:0}", board)
+ self.assertPageContains(".shorts-inline{padding:16px;background:var(--ground);")
+
+ def test_a_range_slider_reports_only_the_end_being_dragged(self):
+ """时长只有一处读数:手柄上方那枚气泡,在碰它的时候出现。
+
+ 两枚气泡常驻的话,滑块不动时它们说的是同一句「不限」;另起一行写「不限 — 不限」
+ 则是同一件事说第三遍,而手真正要看的是当前拖到了哪。两个 input 覆盖同一条轨道,
+ 只有压在手柄上才命中,所以按 `:nth-of-type` 各自认领一端。
+ """
+ board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
+ self.assertIn("white-space:nowrap;box-shadow:0 1px 2px #0000000d;pointer-events:none;"
+ "opacity:0;transition:opacity .12s ease}", board)
+ self.assertIn(".dual-range input:nth-of-type(1):is(:hover,:active,:focus-visible)~"
+ ".board-range-tip[data-range-end=min],", board)
+ self.assertIn(".dual-range input:nth-of-type(2):is(:hover,:active,:focus-visible)~"
+ ".board-range-tip[data-range-end=max]{opacity:1}", board)
+ for gone in ("durMinText", "durMaxText", "duration-readout"):
+ self.assertPageLacks(gone, "时长读数只由手柄上那枚气泡承担")
+
+ def test_a_chart_legend_tile_is_the_grey_surface_itself(self):
+ """图例小卡自己是灰片,不是摆在一块灰托盘上的白片。
+
+ 卡片底、托盘底、小卡底三层各一个颜色时,数字读起来像是嵌在框里的框;而这一组
+ 里只有小卡是可以点的,托盘不承担任何动作,也就不该占一层底色。
+ """
+ board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
+ self.assertIn(".board-radial-tiles{display:flex;flex-wrap:wrap;gap:8px;"
+ "padding:0;border-radius:0;background:none}", board)
+ self.assertIn(".board-radial-tiles>button{display:flex;flex:1 1 calc(33.333% - 8px);min-width:0;"
+ "flex-direction:column;align-items:flex-start;gap:4px;padding:10px;border:0;"
+ "border-radius:12px;background:var(--color-background-secondary-default);", board)
+ # 选中仍然只有填充加一圈同色描边,不再靠「白片压在灰托盘上」拉开层次。
+ self.assertIn(".board-radial-tiles>button:is([data-active=true],[aria-pressed=true])"
+ "{background:color-mix(in srgb,var(--ring-color) 10%,"
+ "var(--color-background-secondary-default));box-shadow:inset 0 0 0 1px var(--ring-color)}",
+ board)
+
def test_a_wide_glyph_gets_a_wide_slot_instead_of_being_shrunk_to_fit(self):
"""1.4:1 的字形锁死方形槽位只能按宽缩,画出来就比满格的邻座矮一截。
diff --git a/web/app.js b/web/app.js
index 04d9610e0..d0ba9097a 100644
--- a/web/app.js
+++ b/web/app.js
@@ -3182,7 +3182,9 @@ async function buildBars(){
`<div class="dnav">${orderedEdgeIcons().map(([k,label,ic])=>navBtn(k,label,ic)).join('')}</div>`+
sec('来源',chips(facetData.locations.map(l=>({k:l.k,label:LOC[l.k]||l.k,n:l.n,
cost:(l.k==='pikpak'||l.k==='online')?'metered':'free'})),'loc',true),'','src')
- +sec('时长',facetData.stats.duration?`<div class="duration-filter"><div class="duration-readout"><span id="durMinText">不限</span><b>—</b><span id="durMaxText">不限</span></div>
+ /* 时长只有一处读数:手柄上方那枚气泡,在拖它的时候出现。另起一行写「不限 — 不限」
+ 是同一件事说第二遍,而且滑块不动时它永远是那句话。 */
+ +sec('时长',facetData.stats.duration?`<div class="duration-filter">
<div class="dual-range" id="durationRange"><span class="range-base"></span><span class="range-fill"></span>
<input id="durMin" type="range" min="0" max="180" step="5" value="${filterState.dur_min?Math.min(180,+filterState.dur_min/60):0}" aria-label="最短时长(分钟)">
<input id="durMax" type="range" min="0" max="180" step="5" value="${filterState.dur_max?Math.min(180,+filterState.dur_max/60):180}" aria-label="最长时长(分钟)"></div></div>`:'','','meta')
@@ -3219,7 +3221,6 @@ async function buildBars(){
let lo=+durMin.value,hi=+durMax.value;
if(lo>hi){if(changed==='min')hi=lo;else lo=hi;durMin.value=lo;durMax.value=hi}
durRange.style.setProperty('--lo',(lo/180*100)+'%');durRange.style.setProperty('--hi',(hi/180*100)+'%');
- $('#durMinText').textContent=lo?lo+' 分钟':'不限';$('#durMaxText').textContent=hi<180?hi+' 分钟':'不限';
if(commit)commitContextFilter(filters=>{
filters.len='';filters.dur_min=lo?String(lo*60):'';filters.dur_max=hi<180?String(hi*60):''})
};
@@ -4117,11 +4118,14 @@ async function openDataCleanup(push=true){
</section>`;
};
const cleanupCards={
- scraping:`<section class="cleanupfieldset" id="libraryProcessing" data-geist-fieldset aria-labelledby="cleanupScrapingTitle">
- <div class="geist-fieldset-content">${fieldsetTitle('cleanupScrapingTitle','扫描与采集')}
- <p>扫描媒体文件夹,导入已有资料,采集缺失信息。</p></div>
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button type="button" disabled>扫描并补全资料</button></footer>
- </section>`,
+ /* 卡片和它的提示是两件东西:提示挂在卡片外面,和资源同步那两块一个写法。
+ `#libraryProcessing` 因此是这一格本身,卡片是它的第一个孩子。 */
+ scraping:`<div class="cleanupscraping" id="libraryProcessing">
+ <section class="cleanupfieldset" data-geist-fieldset aria-labelledby="cleanupScrapingTitle">
+ <div class="geist-fieldset-content">${fieldsetTitle('cleanupScrapingTitle','扫描与采集')}
+ <p>扫描媒体文件夹,导入已有资料,采集缺失信息。</p></div>
+ <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button type="button" disabled>扫描并补全资料</button></footer>
+ </section></div>`,
junk:`<section class="cleanupfieldset" data-geist-fieldset aria-labelledby="cleanupJunkTitle">
<div class="geist-fieldset-content">${fieldsetTitle('cleanupJunkTitle','垃圾文件')}
<strong>${Number(junk.pending_total||0).toLocaleString()} 个待判断</strong>
diff --git a/web/board.css b/web/board.css
index a989881f8..7414602b2 100644
--- a/web/board.css
+++ b/web/board.css
@@ -8,7 +8,7 @@
.settingscard.settingscard>.board-local-nav{grid-column:1;grid-row:1/3;display:flex;flex-direction:column;align-items:stretch;padding:10px;gap:4px;background:var(--ground);border:0}
.settingscard.settingscard>.board-local-nav:before{content:'设置';font-size:13px;color:var(--muted);padding:4px 8px 8px}
.settingscard.settingscard>.board-local-nav button{flex:0 0 auto;justify-content:flex-start;padding:8px;border:0;border-radius:10px;font-size:14px;min-height:36px;font-weight:500}
-.settingscard.settingscard>.board-local-nav button{display:flex;align-items:center;gap:8px}.settingscard.settingscard>.board-local-nav button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}
+.settingscard.settingscard>.board-local-nav button{display:flex;align-items:center;gap:8px}.settingscard.settingscard>.board-local-nav button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;flex:none}
.settingscard.settingscard>.board-local-nav button[aria-selected=true]{background:var(--picked);box-shadow:none}
.settingscard.settingscard .settingshead{grid-column:2;grid-row:1;padding:32px 32px 12px;background:transparent;border:0}
.settingscard .settingshead h2{font-size:20px;font-weight:500;line-height:28px}
@@ -124,7 +124,7 @@ body :is(#manageTitle,#manageCrumb,#manageLede){max-width:var(--board-content);w
/* Task entry cards and editing panels have different information density. */
.cleanuppage,.configpage{width:100%;max-width:var(--board-content)}
-.cleanupgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding-bottom:32px}
+.cleanupgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cleanupfieldset{border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 2px #00000003}
.cleanupfieldset>.geist-fieldset-content{padding:20px 20px 16px;min-height:120px}
.cleanupfieldset h3,.cleanupfieldset h2{font-size:16px;line-height:24px;font-weight:500;margin:0 0 12px}
@@ -132,11 +132,13 @@ body :is(#manageTitle,#manageCrumb,#manageLede){max-width:var(--board-content);w
.cleanupfieldset .cleanupmeta{font-size:12px;line-height:18px;margin-top:8px}
.cleanupfieldset>.geist-fieldset-footer{background:transparent;border-top:1px solid var(--line-soft);padding:12px 20px;min-height:56px}
.cleanupfieldset>.geist-fieldset-footer button{font-size:13px}
-.cleanupgrid>#libraryProcessing{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center}
-.cleanupgrid>#libraryProcessing>.geist-fieldset-content{min-height:0;padding:24px}
-.cleanupgrid>#libraryProcessing>.geist-fieldset-footer{border:0;padding:24px;background:none;display:flex;gap:8px;flex-wrap:wrap}
+.cleanupgrid>#libraryProcessing{grid-column:1/-1;display:grid;gap:16px}
+#libraryProcessing>.cleanupfieldset{display:grid;grid-template-columns:1fr auto;align-items:center}
+#libraryProcessing>.cleanupfieldset>.geist-fieldset-content{min-height:0;padding:24px}
+#libraryProcessing>.cleanupfieldset>.geist-fieldset-footer{border:0;padding:24px;background:none;display:flex;gap:8px;flex-wrap:wrap}
+.library-processing-outcome:empty{display:none}
.board-card-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--line-soft);background:var(--surface);border-radius:10px;margin-right:10px;vertical-align:middle;color:var(--ink-2)}
-.board-card-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
+.board-card-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.configfieldset{border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 2px #00000003}
.configfieldset>.geist-fieldset-content{padding:24px;gap:20px}
.configfieldset>.geist-fieldset-footer{background:var(--ground);border-top:1px solid var(--line-soft);padding:14px 24px}
@@ -190,11 +192,14 @@ body::before{display:none}
.board-filter-frame .sorts button[aria-pressed="true"]{background:var(--picked)}
#grid.gridstack{border:0;background:transparent;padding:0;box-shadow:none;border-radius:0}
#grid.gridstack>.grid{border:0;background:transparent;padding:0;box-shadow:none;border-radius:0}
+/* 竖屏带靠底色和网格区分,不再描一圈线:它嵌在两段无边框的网格中间,一条线反而
+ 把它读成一个可以点开的容器。 */
+.shorts-inline{border:0}
@media(pointer:coarse){.board-filter-frame #tagbar .pill{height:36px}.board-filter-frame #tagbar{height:52px}.board-filter-frame .sorts button{height:36px}}
#applyUISetting{padding:8px 12px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
#applyUISetting[hidden]{display:none}
-@media(max-width:1000px){.cleanupgrid>#libraryProcessing{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;text-align:left}.cleanupgrid>#libraryProcessing>.geist-fieldset-content{width:100%;box-sizing:border-box}.cleanupgrid>#libraryProcessing>.geist-fieldset-footer{padding:0 24px 24px;border:0;justify-content:flex-start;min-width:0}.settingscard{width:calc(100vw - 32px)}}
+@media(max-width:1000px){#libraryProcessing>.cleanupfieldset{grid-template-columns:minmax(0,1fr);align-items:stretch;text-align:left}#libraryProcessing>.cleanupfieldset>.geist-fieldset-content{width:100%;box-sizing:border-box}#libraryProcessing>.cleanupfieldset>.geist-fieldset-footer{padding:0 24px 24px;border:0;justify-content:flex-start;min-width:0}.settingscard{width:calc(100vw - 32px)}}
@media(max-width:760px){
:root,body.drawer-open{--railW:0px}
.drawer{top:64px;bottom:12px;width:min(320px,calc(100vw - 24px));border-radius:20px;z-index:97}
@@ -325,7 +330,7 @@ button,input,select,textarea{font-family:inherit}
.drawer .ovtrack{display:none}
.drawer #brandHome{min-width:0;border-radius:24px;flex:1}
.drawer #brandHome h1{font-size:14px;line-height:20px;letter-spacing:0;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
-.board-library-chevron{width:16px;height:16px;flex:none;fill:none;stroke:var(--muted);stroke-width:1.6}
+.board-library-chevron{width:16px;height:16px;flex:none;fill:none;stroke:var(--muted);stroke-width:2}
.board-library-menu{position:fixed;inset:auto;margin:0;box-sizing:border-box;width:265px;max-width:calc(100vw - 32px);padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--ground);color:var(--ink);box-shadow:0 8px 24px #0002;overflow-y:auto;scrollbar-width:none;transform-origin:top left}
.board-library-menu>p{padding:5px 8px 0;margin:0 0 6px;color:var(--muted);font-size:14px;line-height:20px}
.board-library-rows{display:flex;flex-direction:column;gap:4px}
@@ -353,7 +358,7 @@ button,input,select,textarea{font-family:inherit}
.board-theme-toggle{position:relative;isolation:isolate;display:flex;gap:4px;padding:4px;border-radius:24px;background:var(--picked)}
.board-theme-toggle button{display:grid;place-items:center;width:32px;height:32px;flex:none;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.board-theme-toggle button[aria-pressed=true]{color:var(--ink)}
-.board-theme-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
+.board-theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.board-theme-thumb{position:absolute;z-index:-1;left:4px;top:4px;width:32px;height:32px;background:var(--ground);border-radius:50%;box-shadow:0 1px 3px #0001;transition:transform .2s ease}
.board-theme-toggle.is-dark .board-theme-thumb{transform:translateX(36px)}
@media(min-width:761px){.drawer:not(.open) .board-sidebar-foot{flex-direction:column;padding:12px 10px}.drawer:not(.open) .board-theme-toggle{padding:2px;background:transparent}.drawer:not(.open) .board-theme-toggle button[aria-pressed=true],.drawer:not(.open) .board-theme-thumb{display:none}}
@@ -363,11 +368,11 @@ button,input,select,textarea{font-family:inherit}
.board-section-toggle{display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:8px;border:0;border-radius:10px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.board-section-toggle:hover{background:var(--hover)}
.board-sidebar-head #brandHome[aria-expanded=true]{box-shadow:0 0 0 2px var(--line);border-radius:var(--pill-radius)}
-.board-sidebar-head #brandHome .mark{display:grid;place-items:center;background:none;border-radius:0}.board-sidebar-head .mark svg,.board-library-avatar svg,.drawer .dnav button svg{width:20px;height:20px;stroke-width:1.7}.board-library-avatar{background:none;border-radius:0}.board-home-logo{width:24px;height:24px;object-fit:contain;flex:none}.drawer:not(.open) .dnav button:has(.board-home-logo){padding:6px}
+.board-sidebar-head #brandHome .mark{display:grid;place-items:center;background:none;border-radius:0}.board-sidebar-head .mark svg,.board-library-avatar svg,.drawer .dnav button svg{width:20px;height:20px;stroke-width:2}.board-library-avatar{background:none;border-radius:0}.board-home-logo{width:24px;height:24px;object-fit:contain;flex:none}.drawer:not(.open) .dnav button:has(.board-home-logo){padding:6px}
.drawer.drawer .dnav button[aria-pressed=true]:hover,.drawer.drawer .dnav button[aria-pressed=true]:active{background:var(--board-blue);color:white;filter:brightness(1.08)}
.board-section-toggle>span{font-size:12px;line-height:20px;font-weight:500;color:var(--muted)}
.vwrap>.gate{box-sizing:border-box;border-radius:inherit}.stage .vwrap{overflow:hidden;border-radius:var(--surface-radius)}
-.board-section-toggle svg{order:2;margin-left:auto;width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;transform:rotate(0deg)}
+.board-section-toggle svg{order:2;margin-left:auto;width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:2;transform:rotate(0deg)}
.board-section-toggle[aria-expanded=true] svg{transform:rotate(90deg)}
.drawer .sec:has(.board-section-toggle[aria-expanded=false]) [data-more]{display:none}
.drawer .board-sidebar-body[hidden]{display:none}
@@ -410,7 +415,7 @@ button,input,select,textarea{font-family:inherit}
.metricstrip>button:focus-visible{outline:2px solid var(--tungsten);outline-offset:3px}
.metricstrip .board-stat-label,.tastesummary>.board-stat-label{display:flex;align-items:center;gap:8px;padding:0 16px;color:var(--ink-2);font-size:14px;line-height:20px}
.board-stat-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,#3986ff25,#1760ef08);color:var(--tungsten);flex:none}
-.board-stat-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
+.board-stat-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.metricstrip>button:nth-child(2) .board-stat-icon,.tastesummary:nth-child(2) .board-stat-icon{color:#a78bfa;background:#a78bfa18}
.metricstrip>button:nth-child(3) .board-stat-icon,.tastesummary:nth-child(3) .board-stat-icon{color:#34d399;background:#34d39918}
.metricstrip>button:nth-child(4) .board-stat-icon,.tastesummary:nth-child(4) .board-stat-icon{color:#f59e0b;background:#f59e0b18}
@@ -451,7 +456,7 @@ button,input,select,textarea{font-family:inherit}
.taste-rank-track{display:block;height:4px;margin-top:8px;background:var(--line-soft);border-radius:var(--pill-radius);overflow:hidden}.taste-rank-track i{display:block;height:100%;background:var(--tungsten);opacity:.55;border-radius:inherit}
.tasteleads>header{padding:24px 24px 12px}.tastelede{display:flex;flex-direction:column;gap:12px}.tasteleads .tastelede p{font-size:20px;line-height:30px;color:var(--ink);max-width:64ch}.tasteleads .insightpanelbody{padding:8px 24px 24px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:28px}.tasteinsights{display:flex;flex-direction:column;gap:20px;margin:0}.tasteinsight{padding:0;background:none;gap:6px}.tasteinsight>b{font-weight:400;line-height:22px}.tasteleadlist{align-content:start}.tastelead{background:var(--surface);padding:14px}.tastesources .insightpanelbody>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tastesource{border:0;background:var(--surface);padding:16px}
.followmanage .fmain{gap:28px}.followmanage .fmain>.fsec>.fsources{padding:0 24px 24px;grid-template-columns:minmax(0,1fr);gap:16px}
-.followmanage .fauthor{height:auto;padding:16px 20px;border:0;border-radius:16px;background:var(--ground);display:block}.followmanage .fauthorhead{padding:0 0 12px}.followmanage .fauthorhead b{font-weight:500;white-space:normal}.followmanage .fauthorsources{height:auto;max-height:none;overflow:visible}.followmanage .fauthor .fsource.frow{padding-block:12px;border:0}.followmanage .fauthor .fsource.frow>b{font-weight:400}.followmanage .fauthor .fsource.frow+.fsource.frow{border-top:1px solid var(--line-soft)}
+.followmanage .fauthor{height:auto;padding:16px 20px;border:0;border-radius:16px;background:var(--ground);display:block}.followmanage .fauthorhead{padding:0 0 12px}.followmanage .fauthorhead b{font-weight:500;white-space:normal}.followmanage .fauthorsources{height:auto;max-height:none;overflow:visible}.followmanage .fauthor .fsource.frow{padding-block:12px;border:0}.followmanage .fauthor .fsource.frow>b{font-weight:400}.followmanage .fauthor .fsource.frow:not(:has([data-follow-select]))+.fsource.frow:not(:has([data-follow-select])){border-top:1px solid var(--line-soft)}
.followmanage .fmain>.fsec:has(.fcred){background:none}.followmanage .fmain>.fsec:has(.fcred)>.fsechead{padding:0 0 12px}.followmanage .fmain>.fsec:has(.fcred)>.frows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;padding:0}.followmanage .fcred{margin:0;padding:16px;border:0;border-radius:12px;background:var(--ground);min-width:0}.followmanage .fcred summary{padding:0;min-height:32px}.followmanage .fcred.none{min-height:64px}.followmanage .fcred p{overflow-wrap:anywhere}.followmanage .fmain>.fsec>.fdesc{background:none;border:0;padding:16px 0}
.configfieldset-heading{border:0;padding-bottom:0}.configfieldset{border:0}.configfieldset>.geist-fieldset-footer{border:0}.configfieldset .configfieldset-heading h2{margin:0}
#linkCheckResult:not(:empty),#resourceSyncResult:not(:empty){margin-block:16px 28px}
@@ -468,7 +473,7 @@ button,input,select,textarea{font-family:inherit}
:root{--page:var(--color-background-full);--ground:var(--color-background-secondary-default);--surface:var(--color-background-primary-default);--sunk:var(--color-background-secondary-default);--ink:var(--color-text-primary);--ink-2:var(--color-text-secondary);--muted:var(--color-text-secondary);--line:var(--color-border-button-default);--line-soft:var(--color-separator-border);--picked:var(--color-background-tertiary-default);--inset:var(--color-background-tertiary-default);--hover:var(--color-background-primary-hover);--tungsten:var(--color-border-focus-ring);--chart-0:#2dd4bf;--chart-1:#a3e635;--chart-2:#f472b6;--chart-3:#38bdf8;--board-font:'Inter Variable','Inter','Segoe UI','Microsoft YaHei UI','PingFang SC',sans-serif;--board-body:400 14px/20px var(--board-font);--board-body-medium:500 14px/20px var(--board-font);--board-compact:400 13px/18px var(--board-font);--board-caption:400 12px/16px var(--board-font);--board-heading:500 20px/26px var(--board-font);--board-title:500 32px/44px var(--board-font);--board-figure:500 24px/34px var(--board-font)}
:root[data-theme]{--page:var(--color-background-full);--ground:var(--color-background-secondary-default);--surface:var(--color-background-primary-default);--sunk:var(--color-background-secondary-default);--ink:var(--color-text-primary);--ink-2:var(--color-text-secondary);--muted:var(--color-text-secondary);--line:var(--color-border-button-default);--line-soft:var(--color-separator-border);--picked:var(--color-background-tertiary-default);--inset:var(--color-background-tertiary-default);--hover:var(--color-background-primary-hover);--tungsten:var(--color-border-focus-ring)}
body,.disp{font-family:var(--board-font);letter-spacing:0}body{font:var(--board-body)}button,input,textarea,select{font-family:var(--board-font)}
-.pagetitle,.listtitle,body #manageTitle,.index .ihead h2,.indexheading,.playlistpage h2{font:var(--board-title);letter-spacing:0}.settingscard .settingshead h2,.configfieldset h2,.configfieldset h3,.cleanupfieldset h3,.followmanage .fsechead h3{font:var(--board-heading);letter-spacing:0}.metricstrip>button .board-stat-value,.tastesummary>.board-stat-value{font:var(--board-figure);letter-spacing:0}.drawer .dnav button,.board-library-rows button,.settingrow b,.fsource.frow>b{font:var(--board-body)}.fmeta,.confighelp,.settingrow small{font:var(--board-compact)}.board-stat-footer,.board-watch-measures small,.tasterank small,.insighttoolbar p{font:var(--board-caption);letter-spacing:.15px}
+.pagetitle,.listtitle,body #manageTitle,.index .ihead h2,.indexheading,.playlistpage h2{font:var(--board-title);letter-spacing:0}.settingscard .settingshead h2,.configfieldset h2,.configfieldset h3,.cleanupfieldset h3,.followmanage .fsechead h3,.resourcesync>h2{font:var(--board-heading);letter-spacing:0}.metricstrip>button .board-stat-value,.tastesummary>.board-stat-value{font:var(--board-figure);letter-spacing:0}.drawer .dnav button,.board-library-rows button,.settingrow b,.fsource.frow>b{font:var(--board-body)}.fmeta,.confighelp,.settingrow small{font:var(--board-compact)}.board-stat-footer,.board-watch-measures small,.tasterank small,.insighttoolbar p{font:var(--board-caption);letter-spacing:.15px}
.geist-button,.fbtn,.resourceaction{background-color:var(--color-background-primary-default);border-color:var(--color-border-button-default);color:var(--color-text-primary);transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.geist-button:hover:not(:disabled),.fbtn:hover:not(:disabled),.resourceaction:hover:not(:disabled){background-color:var(--color-background-primary-hover);border-color:var(--color-border-button-hover);color:var(--color-text-primary)}
.geist-button.primary,.geist-button.primary:hover:not(:disabled),.tagselection button.primary,.tagselection button.primary:hover:not(:disabled){background:var(--board-blue);color:var(--color-text-white);transition:filter .15s ease}.geist-button.primary:hover:not(:disabled),.tagselection button.primary:hover:not(:disabled){filter:brightness(1.08)}
@@ -532,10 +537,15 @@ body :is(.dual-range input,.photozoom input,.vjs-peach-speed-range)::-moz-range-
body :is(.photozoom input,.vjs-peach-speed-range)::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:linear-gradient(90deg,#3986ff var(--board-range-value,var(--peach-speed-percent,0%)),var(--color-background-tertiary-default) 0);box-shadow:inset 0 1px 1px #0000000f}
body :is(.photozoom input,.vjs-peach-speed-range)::-webkit-slider-thumb{margin-top:-7px}
body :is(.photozoom input,.vjs-peach-speed-range)::-moz-range-track{height:6px;border-radius:999px;background:linear-gradient(90deg,#3986ff var(--board-range-value,var(--peach-speed-percent,0%)),var(--color-background-tertiary-default) 0)}
-.board-range-tip{position:absolute;bottom:calc(100% + 4px);transform:translateX(-50%);padding:4px 8px;border:1px solid var(--color-border-button-default);border-radius:8px;background:var(--color-background-primary-default);color:var(--color-text-primary);font:var(--board-caption);white-space:nowrap;box-shadow:0 1px 2px #0000000d;pointer-events:none}
+.board-range-tip{position:absolute;bottom:calc(100% + 4px);transform:translateX(-50%);padding:4px 8px;border:1px solid var(--color-border-button-default);border-radius:8px;background:var(--color-background-primary-default);color:var(--color-text-primary);font:var(--board-caption);white-space:nowrap;box-shadow:0 1px 2px #0000000d;pointer-events:none;opacity:0;transition:opacity .12s ease}
+/* 只有正在动的那一端报数。两枚常驻的话,滑块不动时它们说的是同一句「不限」,
+ 而手真正需要看的是当前拖到了哪。两个 input 覆盖同一条轨道,只有压在手柄上才命中。 */
+.dual-range input:nth-of-type(1):is(:hover,:active,:focus-visible)~.board-range-tip[data-range-end=min],
+.dual-range input:nth-of-type(2):is(:hover,:active,:focus-visible)~.board-range-tip[data-range-end=max]{opacity:1}
.dual-range{margin-top:36px}.dual-range .board-range-tip[data-range-end=max]{transform:translateX(-100%)}.dual-range .board-range-tip[data-range-end=min]{transform:none}
-.toast{position:relative;align-items:flex-start;gap:12px;width:min(400px,calc(100vw - 32px));padding:16px 44px 16px 16px;border-radius:16px;background:var(--color-background-primary-default);border-color:var(--color-border-button-default);color:var(--color-text-primary);font:var(--board-body);box-shadow:0 12px 24px -4px #0000001a,0 4px 8px -2px #0000000d;overflow:hidden}
-.toast.warn{border-color:var(--color-border-button-default)}.toast .board-notification-icon{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;background:color-mix(in srgb,#3986ff 12%,var(--color-background-primary-default));color:#1760ef}.toast.warn .board-notification-icon{background:color-mix(in srgb,#f04452 12%,var(--color-background-primary-default));color:var(--drop)}.board-notification-icon svg{width:20px;height:20px}.toast p{padding-block:8px}.toast .tclose{position:absolute;right:12px;top:12px}.toast .tact{align-self:center;font-weight:500;color:var(--tungsten)}
+.toast{position:relative;align-items:center;gap:12px;width:min(400px,calc(100vw - 32px));padding:16px 44px 16px 16px;border-radius:16px;background:var(--color-background-primary-default);border-color:var(--color-border-button-default);color:var(--color-text-primary);font:var(--board-body);box-shadow:0 12px 24px -4px #0000001a,0 4px 8px -2px #0000000d;overflow:hidden}
+.toast.warn{border-color:var(--color-border-button-default)}.toast .board-notification-icon{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;background:color-mix(in srgb,#3986ff 12%,var(--color-background-primary-default));color:#1760ef}.toast.warn .board-notification-icon{background:color-mix(in srgb,#f04452 12%,var(--color-background-primary-default));color:var(--drop)}/* 这枚字形是描边件:不写 `fill:none` 就按 `fill` 的初值涂黑,一个勾会糊成实心箭头。 */
+.board-notification-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}.toast p{margin:0}.toast .tclose{position:absolute;right:12px;top:12px}.toast .tact{align-self:center;font-weight:500;color:var(--tungsten)}
.toast.leaving{transform:translateY(8px) scale(.96);filter:blur(3px);transition:height .18s ease-out,margin .18s ease-out,padding .18s ease-out,border-width .18s ease-out,opacity .18s ease-out,transform .18s ease-out,filter .18s ease-out}
.board-notification-timer{position:absolute;bottom:0;left:0;right:0;height:3px;background:#1760ef;transform-origin:left;animation:board-notification-countdown var(--notification-duration) linear forwards}.toast:hover .board-notification-timer,.toast:focus-within .board-notification-timer{animation-play-state:paused}@keyframes board-notification-countdown{to{transform:scaleX(0)}}
.board-tooltip,.vjs-peach-tooltip{box-sizing:border-box;max-width:240px;padding:6px 10px;border:1px solid var(--color-border-button-default);border-radius:8px;background:var(--color-background-primary-default);color:var(--color-text-primary);font:var(--board-caption);white-space:normal;box-shadow:0 12px 24px -4px #0000001a,0 4px 8px -2px #0000000d}
@@ -559,7 +569,7 @@ body :is(.sbadge.ok,.board-chip.success){background:color-mix(in srgb,#84cc16 16
:root{--board-chart-0:#94e000;--board-chart-1:#3493ff;--board-chart-2:#bc74f9;--board-chart-3:#f657bd;--board-chart-4:#ffc600;--board-chart-5:#2dcbb8}
.fauthorhead{list-style:none}.fauthorhead::-webkit-details-marker{display:none}.board-author-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}.board-author-actions .board-author-toggle{margin:0}.followmanage details.fauthor>.fcollapse>.fcollapsebody{padding:0}.followmanage details.fauthor:not([open]) .fauthorhead{margin-bottom:0}
.followmanage .fsource.selected{background:var(--color-background-primary-default);box-shadow:none;border-color:var(--color-border-focus-ring)}.followmanage .fsource.selected.disabled{opacity:1}
-.followmanage .fsource:has([data-follow-select]){border:1px solid var(--color-border-button-default);border-radius:10px;padding:12px 20px 12px 16px;margin:8px 0;cursor:pointer;transition:background-color 150ms ease,border-color 150ms ease}
+.followmanage .fsource:has([data-follow-select]):not(tr){border:1px solid var(--color-border-button-default);border-radius:10px;padding:12px 20px 12px 16px;margin:8px 0;cursor:pointer;transition:background-color 150ms ease,border-color 150ms ease}
.followmanage .fsource:has([data-follow-select]):hover{background:var(--color-background-primary-hover)}
.followmanage .fsec:has(.board-follow-selection){padding:0;border-radius:18px;background:var(--ground);overflow:visible}.followmanage .fsec>.board-follow-selection{padding:4px 24px 12px}
.followmanage .fsourceactions{padding:2px;overflow:visible}
@@ -576,7 +586,9 @@ body .gselectmenu [role=option][aria-selected=true],body .popmenu [aria-checked=
@keyframes board-ring-enter{from{stroke-dasharray:0px 100px;opacity:0}to{stroke-dasharray:calc(var(--ring-length) * 1px) calc((100 - var(--ring-length)) * 1px);opacity:1}}
.board-radial-card:not(.board-chart-visible) .board-ring-value{animation:none;stroke-dasharray:0 100;opacity:0}
.board-radial-card.board-chart-visible .board-ring-value{animation-duration:1.2s;animation-timing-function:cubic-bezier(.22,.61,.36,1)}
-.board-radial-tiles{display:flex;flex-wrap:wrap;gap:8px;padding:8px;border-radius:16px;background:var(--color-background-secondary-default)}.board-radial-tiles>button{display:flex;flex:1 1 calc(33.333% - 8px);min-width:0;flex-direction:column;align-items:flex-start;gap:4px;padding:10px;border:0;border-radius:12px;background:var(--color-background-primary-default);text-align:left;color:var(--color-text-primary);font:var(--board-body);transition:background .18s,box-shadow .18s}.board-radial-tiles>button>span{display:flex;align-items:center;gap:6px;min-width:0;color:var(--color-text-secondary);overflow-wrap:anywhere}.board-radial-tiles i{width:12px;height:12px;flex:none;border-radius:4px;background:var(--ring-color)}.board-radial-tiles b{font:var(--board-heading);font-variant-numeric:tabular-nums}.board-radial-tiles small{font:var(--board-caption);color:var(--color-text-secondary)}.board-radial-tiles>button:is([data-active=true],[aria-pressed=true]){background:color-mix(in srgb,var(--ring-color) 10%,var(--color-background-primary-default));box-shadow:inset 0 0 0 1px var(--ring-color)}
+/* 图例小卡直接是灰片,不再摆在一块灰托盘上:卡片底、托盘底、小卡底三层各一个颜色,
+ 数字读起来像是嵌在框里的框,而这里只有小卡是可以点的。 */
+.board-radial-tiles{display:flex;flex-wrap:wrap;gap:8px;padding:0;border-radius:0;background:none}.board-radial-tiles>button{display:flex;flex:1 1 calc(33.333% - 8px);min-width:0;flex-direction:column;align-items:flex-start;gap:4px;padding:10px;border:0;border-radius:12px;background:var(--color-background-secondary-default);text-align:left;color:var(--color-text-primary);font:var(--board-body);transition:background .18s,box-shadow .18s}.board-radial-tiles>button>span{display:flex;align-items:center;gap:6px;min-width:0;color:var(--color-text-secondary);overflow-wrap:anywhere}.board-radial-tiles i{width:12px;height:12px;flex:none;border-radius:4px;background:var(--ring-color)}.board-radial-tiles b{font:var(--board-heading);font-variant-numeric:tabular-nums}.board-radial-tiles small{font:var(--board-caption);color:var(--color-text-secondary)}.board-radial-tiles>button:is([data-active=true],[aria-pressed=true]){background:color-mix(in srgb,var(--ring-color) 10%,var(--color-background-secondary-default));box-shadow:inset 0 0 0 1px var(--ring-color)}
.board-activity-charts{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;margin:20px 0}.board-heat-card,.board-activity-empty{min-width:0;padding:20px;border-radius:20px;background:var(--color-background-secondary-default)}.board-heat-card header{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:24px}.board-heat-card h3{margin:0;font:var(--board-heading)}.board-heat-card header b{grid-row:2;font:var(--board-title);font-variant-numeric:tabular-nums}.board-heat-card header span{grid-column:2;grid-row:2;align-self:end;color:var(--muted);font:var(--board-caption)}.board-heat-scroll{overflow-x:auto;padding:3px}.board-hour-grid{display:grid;grid-template-columns:32px repeat(24,minmax(10px,1fr));gap:4px;min-width:360px}.board-heat-axis{font:var(--board-caption);color:var(--muted);align-self:center}.board-day-grid{display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,1fr);grid-template-columns:repeat(13,1fr);gap:5px;padding:3px}
.board-heat-card [data-heat-value]{display:block;aspect-ratio:1;min-width:0;padding:0;border:0;border-radius:3px;background:color-mix(in srgb,#3493ff var(--heat),var(--color-background-tertiary-default));animation:board-heat-enter .4s ease-out both}.board-heat-card [data-heat-value]:is(:hover,:focus-visible){outline:2px solid var(--color-border-focus-ring);outline-offset:1px;filter:brightness(.9)}.board-heat-card footer{display:flex;justify-content:space-between;gap:8px;margin-top:16px;font:var(--board-caption);color:var(--muted)}@keyframes board-heat-enter{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:none}}
@media(max-width:1000px){.board-inventory-charts,.board-activity-charts{grid-template-columns:1fr}.board-rings{height:260px}}
@@ -642,13 +654,18 @@ html.board-high-contrast :is(.selectiondock,.reviewcontrols.is-stuck,.reviewgrou
1px 基线、选中 2px 蓝线由 `[data-board-tabs]::before` 滑过去;选项 px 10 / py 8、Body 1、间隔 4px;
选中蓝字 Medium,未选主文字色 Regular。计数徽标 px 4 / py 1、Caption Medium、4px 圆角:选中蓝底蓝字,未选黑 10% 半透明。 */
.insightpanel>header:has(.insighttabs){padding:8px 16px 0;min-height:0}
-.insighttabs,.reviewtabs{display:flex;align-items:center;gap:4px;width:100%;min-height:0;margin:0;padding:0;border:0;border-bottom:1px solid var(--color-border-button-default);border-radius:0;background:none;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
-.insighttabs button,.reviewtabs button{position:relative;display:inline-flex;flex:none;align-items:center;gap:10px;height:auto;min-height:0;margin:0;padding:8px 10px;border:0;border-radius:0;background:none;box-shadow:none;color:var(--color-text-primary);font:var(--board-body);white-space:nowrap;transition:color .15s ease}
-.insighttabs button::after,.reviewtabs button::after{content:none}
-.insighttabs button:hover,.reviewtabs button:hover{background:none;color:var(--color-text-primary)}
-.insighttabs button[aria-selected="true"],.reviewtabs button[aria-selected="true"]{background:none;color:var(--tungsten);font:var(--board-body-medium)}
-.reviewtabs .n{display:inline-flex;align-items:center;justify-content:center;padding:1px 4px;border-radius:4px;background:color-mix(in srgb,var(--color-text-primary) 10%,transparent);color:var(--color-text-primary);opacity:.5;font:500 12px/16px var(--board-font);font-variant-numeric:tabular-nums}
-.reviewtabs button[aria-selected="true"] .n{background:color-mix(in srgb,var(--tungsten) 16%,var(--color-background-primary-default));color:var(--tungsten);opacity:1}
+.insighttabs{display:flex;align-items:center;gap:4px;width:100%;min-height:0;margin:0;padding:0;border:0;border-bottom:1px solid var(--color-border-button-default);border-radius:0;background:none;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
+.insighttabs button{position:relative;display:inline-flex;flex:none;align-items:center;gap:10px;height:auto;min-height:0;margin:0;padding:8px 10px;border:0;border-radius:0;background:none;box-shadow:none;color:var(--color-text-primary);font:var(--board-body);white-space:nowrap;transition:color .15s ease}
+.insighttabs button::after{content:none}
+.insighttabs button:hover{background:none;color:var(--color-text-primary)}
+.insighttabs button[aria-selected="true"]{background:none;color:var(--tungsten);font:var(--board-body-medium)}
+/* 复核分类长成次级菜单:底下那一屏是同一份复核队列换了个筛法,十枚下划线并排会
+ 把它读成十块各不相干的内容。药丸走全站横排互斥那一套——选中只有填充,未选中
+ 悬停只提文字色。键盘行为仍是 tablist,方向键在同一条里移动焦点。 */
+.reviewtabs button{height:32px;padding:0 12px;gap:6px;border-radius:var(--control-radius);color:var(--color-text-secondary);font:var(--board-body)}
+.reviewtabs button:hover{background:none;color:var(--color-text-primary)}
+.reviewtabs button[aria-selected="true"]{background:var(--picked);color:var(--color-text-primary);font:var(--board-body-medium)}
+.reviewtabs .n{color:var(--color-text-secondary);font:500 12px/16px var(--board-font);font-variant-numeric:tabular-nums}
/* ── 口味页三个面板的标题同一档:Heading 20/26、上 24 左 24 下 12 ── */
.insightpanel>header:not(:has([role="tablist"])){display:block;min-height:0;padding:24px 24px 12px}
.insightpanel>header h3,.insightcopy>span{margin:0;font:var(--board-heading);color:var(--color-text-primary)}
@@ -670,6 +687,8 @@ body .tasterank:is(button):hover,body .board-rank-list .tasterank:hover{border-c
.board-radar-value{transform-box:view-box;transform-origin:160px 140px}
.board-radar:not(.board-chart-visible) .board-radar-value{transform:scale(0);opacity:0}
.board-radar.board-chart-visible .board-radar-value{animation:board-grow-radar 1.2s cubic-bezier(.22,.61,.36,1) both}
+.board-ranked-chart.board-chart-settled .board-rank-fill,.tasteranks.board-chart-settled .taste-rank-track i,.board-radar.board-chart-settled .board-radar-value{animation:none;transform:none;opacity:1}
+.board-heat-card.board-chart-settled [data-heat-value],.board-sankey-card.board-chart-settled .board-sankey-links path{animation:none}
/* ── 复核动作:跳过是蓝色 Chip 的配色(boardui chip.tsx blue:亮 200/800,暗 950@60%/300),悬停深一档 ── */
body .reviewactions button.warning:not(:disabled){background:#bfdbfe;color:#1e40af;border-color:transparent}
body .reviewactions button.warning:hover:not(:disabled){background:#93c5fd;color:#1e3a8a}
@@ -715,8 +734,7 @@ body .reviewactions button:disabled{opacity:.5;cursor:not-allowed}
.followmanage .board-follow-list .fsource.frow:hover{background:var(--color-background-primary-hover)}
.followmanage .board-follow-list .fsource.selected,.followmanage .board-follow-list .fsource.selected:hover{background:var(--color-background-primary-default);border-color:var(--color-border-focus-ring)}
@media(max-width:760px){.followmanage .fmain>.fsec:has(.fsources)>.fsechead{padding:16px 16px 8px}.followmanage .fmain>.fsec>.fsources{padding:0 16px 16px}.followmanage .fsec>.board-follow-selection{padding:4px 16px 12px}.followmanage .board-follow-list .fauthor{padding:12px}}
-/* ── 表格:外框管边线与圆角,里层管横向滚动与两端渐隐;接着卡片脚时下面两角不圆。选中行是蓝色 8% 的一层底,不描蓝线(上游选中行样式未取得) ── */
-.followmanage .fmain>.fsec:has(>.fsecfoot) .ftableframe{border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}
+/* ── 表格:外框管边线与圆角,里层管横向滚动与两端渐隐。选中行是蓝色 8% 的一层底,不描蓝线(上游选中行样式未取得) ── */
.followmanage .ftable tr.fsource.selected,.followmanage .ftable tr.fsource.selected:hover{background:color-mix(in srgb,var(--tungsten) 8%,var(--color-background-primary-default));border-color:var(--color-separator-border);box-shadow:none}
.followmanage .ftable tbody tr{transition:background-color .15s ease}
.followmanage .ftable tbody tr:last-child{border-bottom:0}
@@ -724,7 +742,7 @@ body .reviewactions button:disabled{opacity:.5;cursor:not-allowed}
.followmanage .fsechead .iconswitch[data-board-segments]{padding:3px;border-radius:10px;gap:2px}
.followmanage .fsechead .iconswitch[data-board-segments]>label{width:34px;height:30px;border-radius:7px}
.followmanage .fsechead .iconswitch[data-board-segments]>.board-segment-thumb{border-radius:7px}
-.followmanage .fsechead .iconswitch svg{width:16px;height:16px;stroke-width:1.8}
+.followmanage .fsechead .iconswitch svg{width:16px;height:16px;stroke-width:2}
/* ── 勾选框(boardui checkbox-glyph.tsx):未选 1px border-checkbox-default 加 shadow-xs,悬停边线深一档、底不变;
选中蓝渐变 + 内嵌高光;勾 2px 圆头,200ms cubic-bezier(.65,0,.35,1) 从零画出。tokens:亮 neutral-300/400,暗 neutral-700/500。 ── */
:root,:root[data-theme="light"]{--color-border-checkbox-default:#d4d4d4;--color-border-checkbox-hover:#a3a3a3}
@@ -757,18 +775,25 @@ body .library-processing [role=alert]>.geist-note{margin-top:12px}
/* 复核页与别的管理页同宽;标签条不悬浮,悬浮的是工具条这一层,分组条贴在它下面合成一个玻璃框。 */
body .review{width:100%;max-width:var(--board-content);margin:0 auto;box-sizing:border-box}
body .review .reviewcontrols{position:static;z-index:auto;padding-block:0;display:block;border-radius:0}
-body .review .reviewbulktoolbar{position:sticky;top:var(--topH);z-index:60;margin:0 -16px 16px;padding:12px 16px;border-radius:20px;transition:border-radius .15s ease}
-body .review .reviewgroupbar{margin-inline:-16px;padding-inline:16px}
-body .review .reviewbulktoolbar.is-stuck{background:var(--glass-fill);backdrop-filter:var(--glass-optic,blur(22px)) saturate(145%);border:0;box-shadow:inset 0 1px 0 var(--glass-rim),var(--glass-shadow)}
-body .review:has(.reviewgroupbar.is-stuck) .reviewbulktoolbar.is-stuck{border-radius:20px 20px 0 0;box-shadow:inset 0 1px 0 var(--glass-rim)}
-body .review .reviewgroupbar.is-stuck{background:var(--glass-fill);border-radius:0 0 20px 20px;box-shadow:var(--glass-shadow)}
+body .review .reviewbulktoolbar{position:sticky;top:var(--topH);z-index:60;width:auto;margin:0 calc(-1 * var(--review-edge,16px));padding:12px var(--review-edge,16px);background:var(--ground);border-radius:20px 20px 0 0}
+body .review .reviewgroupbar{margin-inline:calc(-1 * var(--review-edge,16px));padding-inline:var(--review-edge,16px);background:var(--ground);border:0;border-radius:0 0 20px 20px}
+body .review .reviewgroup:not([hidden])~.reviewgroup:not([hidden])>.reviewgroupbar{border-radius:20px}
+/* 悬浮起来的是一块玻璃,不是两块叠在一起。每块玻璃只糊自己身后那一段页面,两块
+ 上下相接就会在接缝处显出两种颜色——工具条身后是卡片,分组条身后是另一排卡片。
+ 所以玻璃由页面自己画一层,铺满当前粘住的那几行;两条横条只留内容,不带底。
+ 矩形由 `updateReviewSticky` 逐帧量出来,写进 `--review-pane-*`。 */
+body .review{position:relative}
+body .review.review-is-stuck::before{content:"";position:fixed;top:var(--topH);left:var(--review-pane-left,0);width:var(--review-pane-width,0);height:var(--review-pane-height,0);z-index:58;pointer-events:none;border-radius:20px;background:var(--glass-fill);backdrop-filter:var(--glass-optic,blur(22px)) saturate(145%);-webkit-backdrop-filter:var(--glass-optic,blur(22px)) saturate(145%);box-shadow:inset 0 1px 0 var(--glass-rim),var(--glass-shadow)}
+body .review :is(.reviewbulktoolbar,.reviewgroupbar).is-stuck{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;border:0;box-shadow:none}
+html.board-high-contrast .review.review-is-stuck::before{background:var(--ground);backdrop-filter:none;-webkit-backdrop-filter:none}
+@media(prefers-reduced-transparency:reduce){body .review.review-is-stuck::before{background:var(--ground);backdrop-filter:none;-webkit-backdrop-filter:none}}
/* 批量条:隐藏的键真的隐藏(Board 的 inline-flex 曾压过 hidden);「加入回收站」用 error 按钮的红色渐变。 */
body .batchbar button.danger{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:4px;height:36px;min-height:36px;padding:8px 12px;border:1px solid transparent;border-radius:10px;background:linear-gradient(180deg,#ff3347,#e60012);color:#fff;font:var(--board-body-medium);transition:background-color .15s ease}
body .batchbar button.danger:hover{background:linear-gradient(180deg,#ff6471,#ff3347);color:#fff}
body .batchbar button.danger svg{margin-right:0}
body .batchbar button[hidden],body .batchbar button.danger[hidden]{display:none}
/* 关注行里的刷新与删除键:线宽与列表其它图标一致。 */
-.followmanage .frowicon svg{stroke-width:1.8}
+.followmanage .frowicon svg{stroke-width:2}
/* 侧栏切换器:32px 圆形标识 + 名字 + 双向箭头,悬停在按钮外 5/6px 处描一圈 2px 线;收起键只有 20px 高的图标。 */
.board-sidebar-head #brandHome{position:relative;flex:0 1 auto;max-width:calc(100% - 28px);gap:8px;padding:2px}
.board-sidebar-head #brandHome::before{content:'';position:absolute;inset:-5px -6px;border:2px solid var(--color-border-button-default);border-radius:999px;opacity:0;transition:opacity .15s ease;pointer-events:none}
diff --git a/web/css/01-base.css b/web/css/01-base.css
index b496a0667..2bac4691a 100644
--- a/web/css/01-base.css
+++ b/web/css/01-base.css
@@ -217,7 +217,7 @@ button,a,input,textarea,select,summary{touch-action:manipulation}
间距只由 .externallink 的 gap 说:挂在标自己身上会和容器的 gap 叠起来。 */
.externallink{display:inline-flex;align-items:center;gap:2px;min-width:0}
svg.externalmark{width:1.15em;height:1.15em;flex:none;align-self:center;
- stroke:currentColor;fill:none;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}
+ stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.geist-button:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}
.geist-button:disabled{background:var(--sunk);color:var(--muted);cursor:not-allowed}
/* Vercel/Geist loading actions look unavailable and reject repeat activation,
@@ -329,7 +329,7 @@ button.danger:not(.frowicon):disabled{
.gselectfield>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gselectmenu [data-select-content]{display:flex;align-items:center;gap:8px;min-width:0}
.gselectfield .gselectmark{vertical-align:-3px;margin-inline-end:8px}
-.gselectmark{width:16px;height:16px;flex:none;object-fit:contain;stroke:currentColor;fill:none}
+.gselectmark{width:16px;height:16px;flex:none;object-fit:contain;stroke:currentColor;fill:none;stroke-width:2}
.gselectfield>svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;color:var(--muted)}
.gselectfield:hover:not(:disabled){border-color:var(--field-ring-hover)}
/* 展开时按住焦点态:菜单开着而触发器看起来没被点中,读起来像两个控件。 */
diff --git a/web/css/02-topbar.css b/web/css/02-topbar.css
index f57ca0993..7c1afc54b 100644
--- a/web/css/02-topbar.css
+++ b/web/css/02-topbar.css
@@ -19,7 +19,7 @@
background:var(--surface);border:1px solid var(--line);border-radius:var(--pill-radius);padding:8px 16px;position:relative}
.search:focus-within{border-color:var(--field-ring-focus);box-shadow:0 0 0 4px var(--field-glow)}
.search input{flex:1;min-width:0;background:none;border:0;outline:none;font-size:var(--fs-lg)}
-.search>svg{width:21px;height:21px;flex:none;stroke:var(--muted);fill:none;stroke-width:1.8;stroke-linecap:round}
+.search>svg{width:21px;height:21px;flex:none;stroke:var(--muted);fill:none;stroke-width:2;stroke-linecap:round}
.searchmenu{position:absolute;z-index:130;left:0;right:0;top:calc(100% + 8px);padding:8px;
border:1px solid var(--border-10);border-radius:var(--floating-radius);
background:color-mix(in srgb,var(--surface) 96%,var(--ground));
diff --git a/web/css/04-manage.css b/web/css/04-manage.css
index 13444c7a6..3b808e7a1 100644
--- a/web/css/04-manage.css
+++ b/web/css/04-manage.css
@@ -75,8 +75,8 @@
.reviewalias{margin:2px 0 0;font-size:var(--fs-xs);color:var(--muted)}
/* 数据管理整页收进一条窄列(vercel.com/geist/fieldset 实测示例块宽 812px),
fieldset 一行一个,不再拼三列。 */
-.cleanuppage{width:min(812px,100%);margin:0 auto}
-.cleanupgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;padding:0 0 42px}
+.cleanuppage{width:min(812px,100%);margin:0 auto;display:grid;gap:32px}
+.cleanupgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
/* Geist Fieldset:全框只有一条线,在底部操作条上方。标题是正文区的第一行,
底下不划线(证据:vercel.com/geist/fieldset 的 Multiple Fieldsets 示例)。
操作条固定 52px、竖直居中,按钮一律靠右;左侧有说明时说明推到最左。
@@ -174,7 +174,7 @@
@media(max-width:600px){.scraping-page{--control-h:44px}.scraping-source button{min-height:44px}.scraping-cookie-method span{height:44px}}
#libraryProcessing{scroll-margin-top:80px}
-.reviewbulktoolbar{width:100%;padding-block:0;margin-bottom:0}
+.reviewbulktoolbar{padding-block:0;margin-bottom:0}
.reviewcontrols{position:sticky;top:var(--topH);z-index:60;display:grid;gap:12px;padding-block:12px;margin-bottom:16px}
.reviewcontrols,.reviewgroupbar{margin-inline:calc(-1 * var(--review-edge,16px));padding-inline:var(--review-edge,16px);background:transparent;border-bottom:1px solid transparent}
.reviewcontrols.is-stuck,.reviewgroupbar.is-stuck{background:var(--ground);border-bottom-color:var(--line-soft)}
diff --git a/web/css/06-index.css b/web/css/06-index.css
index 2417fcd35..1e3c1fb0f 100644
--- a/web/css/06-index.css
+++ b/web/css/06-index.css
@@ -4,7 +4,7 @@
body.entity-open .index{overflow-x:visible}
.index .ihead{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.index .ihead h2{margin:0}
-.indexheading{display:inline-flex;align-items:center;gap:9px}.indexheading svg{width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:1.8}
+.indexheading{display:inline-flex;align-items:center;gap:9px}.indexheading svg{width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:2}
.index .ihead .geist-search{flex:1;max-width:320px;margin-left:auto}
#indexCount{color:var(--muted)}
.igrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px 10px}
@@ -37,7 +37,7 @@ body.entity-open .index{overflow-x:visible}
高度也钉成和它一样的 36px(28 + 3 padding + 1 border),并排才谈得上底部对齐。 */
.viewmodes{display:flex;gap:4px;padding:3px;border:1px solid var(--line-soft);border-radius:var(--surface-radius);background:var(--overlay-5)}
.viewmodes button{border:0;border-radius:var(--control-radius);background:transparent;color:var(--muted);height:28px;padding:0 10px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
-.viewmodes button svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8}
+.viewmodes button svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2}
/* 「Aa」是 1.4:1 的字形,宽高都锁 15px 只能按宽缩,画出来比邻座矮一截。 */
.viewmodes button svg.iconwide{width:auto}
.viewmodes button:hover{color:var(--ink)}
diff --git a/web/css/07-entity.css b/web/css/07-entity.css
index b66cb2ae3..6c255efa9 100644
--- a/web/css/07-entity.css
+++ b/web/css/07-entity.css
@@ -45,7 +45,7 @@
周围暗一档,看着像这条链接被禁用了——而图标要说的是「去哪」,不是「能不能点」。 */
.entitylinkicon{width:32px;height:32px;border-radius:50%;background:transparent;display:grid;place-items:center;
overflow:hidden;position:relative;flex:none}.entitylinkicon svg{width:16px;height:16px;stroke:currentColor;fill:none;
- stroke-width:1.8}
+ stroke-width:2}
/* favicon 是别人服务器上的位图,取不到时 `onerror` 会把 img 摘掉、露出下面的地球。
但白底会让「取到了一张空图」看起来和「圆盘坏了」一模一样——X 的 favicon 正是这种。
现在 X 走内联品牌标记不再发请求,其余主机也不再垫白底。 */
diff --git a/web/css/08-photos.css b/web/css/08-photos.css
index 312fd5f31..6280c373a 100644
--- a/web/css/08-photos.css
+++ b/web/css/08-photos.css
@@ -16,7 +16,7 @@
.media-circle:hover{background:rgba(255,255,255,.18)}
.media-circle:focus-visible{outline:2px solid var(--tungsten);outline-offset:3px}
.media-circle svg{display:block;width:24px;height:24px;flex:none;stroke:currentColor;fill:none;
- stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
+ stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.media-circle.media-overlay{background:rgba(0,0,0,.6);color:#fff;backdrop-filter:blur(16px)}
.media-circle.media-overlay:hover{background:rgba(0,0,0,.78)}
/* 灯箱本体只负责固定视口;主图、顶部工具和底部缩略图各自绝对定位。
diff --git a/web/css/12-cards.css b/web/css/12-cards.css
index c2d092014..4b6e453a3 100644
--- a/web/css/12-cards.css
+++ b/web/css/12-cards.css
@@ -40,7 +40,7 @@ main{position:relative;z-index:1;padding:14px 16px 90px}
.count.count-actions-only{position:relative;top:auto;min-height:0;margin:0 0 16px;padding:0;justify-content:flex-end}
.count.count-actions-only:empty{display:none}
.resourcesync{scroll-margin-top:calc(var(--topH) + 18px);display:grid;gap:16px}.resourcesync>h2{margin:0;font-size:var(--fs-xl)}
-.resourcesyncbox,.resourcepanel{overflow:clip;border:1px solid var(--field-ring);border-radius:var(--floating-radius);background:var(--ground)}.resourcesyncbody{padding:20px}.resourcesyncbody p{max-width:760px;margin:0;color:var(--muted);font-size:var(--fs-sm);line-height:1.55}.resourcesyncfooter,.resourceapplyrow{box-sizing:border-box;min-height:var(--fieldset-bar-h);display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 12px 12px 20px;border-top:1px solid var(--line-soft);background:var(--overlay-5)}.resourcesyncfooter p,.resourceapplyrow>p{margin:0;color:var(--muted);font-size:var(--fs-xs);line-height:1.5}.resourceaction{box-sizing:border-box;height:36px;padding:0 12px;border:0;border-radius:var(--control-radius);box-shadow:0 0 0 1px var(--line-soft);background:var(--ground);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;font:inherit;font-size:var(--fs-sm);font-weight:500;cursor:pointer;transition:background-color .12s,color .12s}.resourceaction:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 8%,var(--ground));color:var(--ink)}.resourceaction:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.resourceaction:disabled{background:var(--sunk);color:var(--muted);cursor:not-allowed}.resourceaction svg{width:16px;height:16px;stroke:currentColor;fill:none}#resourceSyncResult:empty{display:none}.resourcescanning{margin:0;padding:14px 16px;border:1px solid var(--line-soft);border-radius:var(--control-radius);color:var(--muted)}.resourcesources{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}.resourcesources article{display:grid;gap:4px;min-width:0;padding:16px}.resourcesources article+article{border-left:1px solid var(--line-soft)}.resourcesourcetitle{display:flex;align-items:center;justify-content:space-between;gap:12px}.resourcesourcetitle span{font-size:var(--fs-xs)}.resourcesources .online{color:var(--success)}.resourcesources .offline{color:var(--drop)}.resourcesources strong{margin-top:10px;font-size:var(--fs-2xl);font-variant-numeric:tabular-nums}.resourcesources small,.resourcecache small{color:var(--muted)}/* 这里是一排读数,不是又一个盒子。原先它自带填色和分格线,和下面的操作条同色,
+.resourcesyncbox,.resourcepanel{overflow:clip;border:1px solid var(--field-ring);border-radius:var(--floating-radius);background:var(--ground)}.resourcesyncbody{padding:20px}.resourcesyncbody p{max-width:760px;margin:0;color:var(--muted);font-size:var(--fs-sm);line-height:1.55}.resourcesyncfooter,.resourceapplyrow{box-sizing:border-box;min-height:var(--fieldset-bar-h);display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid var(--line-soft);background:var(--overlay-5)}.resourcesyncfooter p,.resourceapplyrow>p{margin:0;color:var(--muted);font-size:var(--fs-xs);line-height:1.5}.resourceaction{box-sizing:border-box;height:36px;padding:0 12px;border:0;border-radius:var(--control-radius);box-shadow:0 0 0 1px var(--line-soft);background:var(--ground);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;font:inherit;font-size:var(--fs-sm);font-weight:500;cursor:pointer;transition:background-color .12s,color .12s}.resourceaction:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 8%,var(--ground));color:var(--ink)}.resourceaction:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.resourceaction:disabled{background:var(--sunk);color:var(--muted);cursor:not-allowed}.resourceaction svg{width:16px;height:16px;stroke:currentColor;fill:none}#linkCheckResult:empty,#resourceSyncResult:empty{display:none}.resourcescanning{margin:0;padding:14px 16px;border:1px solid var(--line-soft);border-radius:var(--control-radius);color:var(--muted)}.resourcesources{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}.resourcesources article{display:grid;gap:4px;min-width:0;padding:16px}.resourcesources article+article{border-left:1px solid var(--line-soft)}.resourcesourcetitle{display:flex;align-items:center;justify-content:space-between;gap:12px}.resourcesourcetitle span{font-size:var(--fs-xs)}.resourcesources .online{color:var(--success)}.resourcesources .offline{color:var(--drop)}.resourcesources strong{margin-top:10px;font-size:var(--fs-2xl);font-variant-numeric:tabular-nums}.resourcesources small,.resourcecache small{color:var(--muted)}/* 这里是一排读数,不是又一个盒子。原先它自带填色和分格线,和下面的操作条同色,
两条带子连在一起看不出边界;框里再套框也是多余的一层。 */
.resourcecache{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 32px;border-top:1px solid var(--line-soft);padding:16px 20px}.resourcecache>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:4px 16px}.resourcecache b{font-size:var(--fs-2xl);font-variant-numeric:tabular-nums}.resourcecache span{font-weight:600}.resourcecache small{grid-column:1/-1}.resourceapplyrow .resourcesyncok{color:var(--success)}.resourcesyncok{margin:0;color:var(--success)}
.tagbar,.count,.entitytagbar,.entitycollectionhead{transition:background-color .16s ease,border-color .16s ease}
@@ -179,7 +179,7 @@ img.hvframes{position:absolute;inset:0;width:100%;height:100%;object-fit:contain
background:rgba(0,0,0,.24);color:#fff;backdrop-filter:saturate(180%) blur(12px);
-webkit-backdrop-filter:saturate(180%) blur(12px);display:flex;align-items:center;
justify-content:center;cursor:pointer;position:relative;transition:transform .15s ease,background .15s ease}
-.hovertools button svg{width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:1.8;
+.hovertools button svg{width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:2;
stroke-linecap:round;stroke-linejoin:round}
.hovertools button:hover{transform:scale(1.12);background:rgba(0,0,0,.34)}
/* 居中那三颗和右下角的「稍后看」是同一种控件,只是尺寸不同:共用磨砂圆底、同一条
@@ -204,7 +204,7 @@ img.hvframes{position:absolute;inset:0;width:100%;height:100%;object-fit:contain
@keyframes preview-arc{to{stroke-dashoffset:0}}
.nopic{font-size:var(--fs-xs);letter-spacing:.12em;color:var(--muted);text-transform:uppercase}
.resourceglyph{display:grid;place-items:center;gap:8px;color:var(--muted);font-size:var(--fs-xs);letter-spacing:.08em}
-.resourceglyph svg{width:32px;height:32px;stroke:currentColor;fill:none;stroke-width:1.5}
+.resourceglyph svg{width:32px;height:32px;stroke:currentColor;fill:none;stroke-width:2}
.resourcecardaction{position:absolute;right:10px;bottom:10px;z-index:5;display:inline-flex;align-items:center;gap:6px;
min-height:32px;padding:0 10px;border:1px solid rgba(255,255,255,.25);border-radius:var(--control-radius);
background:rgba(0,0,0,.64);color:#fff;font:inherit;font-size:var(--fs-xs);cursor:pointer;
@@ -213,7 +213,7 @@ img.hvframes{position:absolute;inset:0;width:100%;height:100%;object-fit:contain
.resourcecardaction:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}
.resourcecardaction:disabled{cursor:wait;opacity:.72}.resourcecardaction svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2}
.resourcekind{display:grid;place-items:center;color:var(--muted);border-radius:var(--control-radius)}
-.resourcekind svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7}
+.resourcekind svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2}
.resourcecardtitle{cursor:default}
.junkcount{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px}
.junksummary{flex:none;font-size:var(--fs-sm);color:var(--muted);white-space:nowrap}
@@ -242,7 +242,7 @@ img.hvframes{position:absolute;inset:0;width:100%;height:100%;object-fit:contain
.reviewtabs button:focus-visible,.junkfilters a:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}
.reviewtabs .n,.junkfilters .n{color:var(--muted);font-size:var(--fs-xs);font-variant-numeric:tabular-nums}
.junkfilters i{width:1px;height:20px;background:var(--line-soft);flex:none;margin:0 6px}
-.junkfilters a>svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;
+.junkfilters a>svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:2;
stroke-linecap:round;stroke-linejoin:round}
.junkcard{cursor:default;gap:0;overflow:hidden;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--ground);
content-visibility:auto;contain-intrinsic-size:auto 360px}
@@ -281,11 +281,11 @@ body[data-density="dense"] .junkcard .junkactions button span{display:none}
115 / PikPak 的官方位图 logo 自带完整底色,保持裸图不再叠底。 */
.src:has(svg){width:auto;height:auto;padding:3px;border-radius:var(--badge-radius);background:color-mix(in srgb,#080A0D 62%,transparent)}
.src.free{color:#CFE8CF}.src.metered{color:#FFD9AE}
-.src svg{stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
+.src svg{stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* 详情面板里的来源 */
.srcbig{display:inline-grid;place-items:center;width:22px;height:22px;padding:0;border:0;background:transparent}
.srcbig img,.srcbig svg{width:17px;height:17px;border-radius:var(--badge-radius);object-fit:contain;flex:none}
-.srcbig svg{stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
+.srcbig svg{stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.srcbig.metered{color:var(--meter)}.srcbig.free{color:var(--keep)}
.dur{position:absolute;right:6px;bottom:6px;z-index:2;background:color-mix(in srgb,#000 70%,transparent);
color:#F2EADF;padding:2px 6px;border-radius:var(--badge-radius);transition:opacity .15s ease}
diff --git a/web/css/15-detail.css b/web/css/15-detail.css
index 0a7391445..1abfb6dec 100644
--- a/web/css/15-detail.css
+++ b/web/css/15-detail.css
@@ -27,7 +27,7 @@
.photohead .srcstate{flex:none}
.smeta{display:flex;gap:9px;flex-wrap:wrap;color:var(--muted);margin-bottom:18px}
.detailmetaitem{display:inline-flex;align-items:center;gap:5px}.detailmetaitem svg{width:15px;height:15px;
- flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
+ flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.stags{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 18px}
.detailtag{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:var(--tag-radius);
background:color-mix(in srgb,var(--surface) 82%,var(--ground));overflow:hidden;min-height:30px}
diff --git a/web/css/18-drawer.css b/web/css/18-drawer.css
index f72c4e553..10e75edc9 100644
--- a/web/css/18-drawer.css
+++ b/web/css/18-drawer.css
@@ -59,7 +59,7 @@ body.drawer-open .edge{opacity:0;pointer-events:none} /* 展开时窄栏让位
分辨「你在这儿」全靠颜色。 */
.dnav button:hover{background:var(--hover)}
.dnav button[aria-pressed="true"]{background:var(--hover);color:var(--ink)}
-.dnav svg{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;
+.dnav svg{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:2;
stroke-linecap:round;stroke-linejoin:round}
.drawer .chip{font-size:var(--fs-xs);padding:4px 10px}
.scrim{position:fixed;inset:0;z-index:95;background:rgba(0,0,0,.42);opacity:0;pointer-events:none;
@@ -74,7 +74,7 @@ body.drawer-open .edge{opacity:0;pointer-events:none} /* 展开时窄栏让位
.chips{display:flex;flex-wrap:wrap;gap:4px}
.chip img,.chip>svg{width:14px;height:14px;border-radius:var(--badge-radius);object-fit:contain;flex:none}
.source-icon{display:block!important;width:16px!important;height:16px!important;min-width:16px;opacity:1!important;filter:none!important;object-fit:contain}
-.chip>svg{stroke:currentColor;fill:none;stroke-width:1.7}
+.chip>svg{stroke:currentColor;fill:none;stroke-width:2}
.chip{display:inline-flex;align-items:center;gap:6px;padding:var(--tag-pad-y) var(--tag-pad-x);border:1px solid var(--line);
border-radius:var(--tag-radius);background:transparent;cursor:pointer;font-size:var(--fs-xs)}
.chip:hover{color:var(--ink)}
@@ -95,8 +95,7 @@ body.drawer-open .edge{opacity:0;pointer-events:none} /* 展开时窄栏让位
.chip .n{font-size:var(--fs-xs);color:var(--muted);font-variant-numeric:tabular-nums}
.cost{width:5px;height:5px;border-radius:50%;flex:none}
.cost.free{background:var(--keep)} .cost.metered{background:var(--meter)}
-.duration-filter{padding:3px 2px 8px}.duration-readout{display:flex;justify-content:space-between;align-items:center;
- color:var(--ink-2);font-size:var(--fs-xs);margin-bottom:8px}.duration-readout b{color:var(--ink);font-weight:600}
+.duration-filter{padding:3px 2px 8px}
/* 时长拉条是控件不是进度条,蓝只剩它的焦点环:已选段填 --ink,抓手填 --ground 再描一圈
--ink。两个 token 随主题翻面的方向相反,所以两档读出来是同一句话——抓手永远和它坐落
的那张面同色,像是从墨色轨道上抠下来的一段。单给抓手填 --ink 就不成立:浅色下它是压在
diff --git a/web/css/19-immersive.css b/web/css/19-immersive.css
index f7962270c..d28b26b89 100644
--- a/web/css/19-immersive.css
+++ b/web/css/19-immersive.css
@@ -76,7 +76,7 @@
.emptystate{grid-column:1/-1;display:grid;justify-items:center;align-content:center;gap:8px;box-sizing:border-box;width:100%;min-height:320px;padding:48px 24px;text-align:center;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--ground)}
.emptystate.compact{min-height:220px;border:0;background:transparent}
.emptystate .es-icon{display:grid;place-items:center;box-sizing:border-box;width:54px;height:54px;padding:10px;border-radius:var(--floating-radius);border:1px solid var(--border-15);color:var(--muted);margin-bottom:8px}
-.emptystate .es-icon svg{width:32px;height:32px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
+.emptystate .es-icon svg{width:32px;height:32px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.emptystate .es-copy{display:grid;justify-items:center;gap:8px}
.emptystate h3{margin:0;font-size:var(--fs-md);font-weight:600;color:var(--ink)}
.emptystate p{margin:0;max-width:340px;font-size:var(--fs-sm);line-height:1.55;color:var(--muted)}
@@ -241,8 +241,8 @@ body:has(#batchbar:not([hidden])) #stage{padding-bottom:180px}
给它们切「封面」没有意义。 */
.javbar{display:flex;align-items:center;gap:8px;padding:0 0 10px;flex-wrap:wrap}
.javbar[hidden]{display:none}
-.javbar button{width:34px;height:30px;display:inline-grid;place-items:center;border-radius:var(--control-radius);border:1px solid var(--overlay-10);background:transparent;color:var(--muted);cursor:pointer;padding:0}.javbar button svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8}.javbar button:hover{color:var(--ink)}.javbar button[aria-pressed="true"]{background:var(--picked);color:var(--ink)}
-.iconswitch{min-width:0;margin:0;padding:3px;border:1px solid var(--line-soft);border-radius:var(--surface-radius);background:var(--overlay-5)}.iconswitch label{position:relative;display:inline-grid;width:34px;height:28px;place-items:center;border-radius:var(--control-radius);color:var(--muted);cursor:pointer}.iconswitch input{position:absolute;inline-size:1px;block-size:1px;opacity:0}.iconswitch label:hover{color:var(--ink)}.iconswitch label:has(input:checked){background:var(--surface);color:var(--ink);box-shadow:0 1px 2px #0005}.iconswitch label:has(input:focus-visible){outline:2px solid var(--tungsten);outline-offset:2px}.iconswitch svg{display:block;width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8}
+.javbar button{width:34px;height:30px;display:inline-grid;place-items:center;border-radius:var(--control-radius);border:1px solid var(--overlay-10);background:transparent;color:var(--muted);cursor:pointer;padding:0}.javbar button svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2}.javbar button:hover{color:var(--ink)}.javbar button[aria-pressed="true"]{background:var(--picked);color:var(--ink)}
+.iconswitch{min-width:0;margin:0;padding:3px;border:1px solid var(--line-soft);border-radius:var(--surface-radius);background:var(--overlay-5)}.iconswitch label{position:relative;display:inline-grid;width:34px;height:28px;place-items:center;border-radius:var(--control-radius);color:var(--muted);cursor:pointer}.iconswitch input{position:absolute;inline-size:1px;block-size:1px;opacity:0}.iconswitch label:hover{color:var(--ink)}.iconswitch label:has(input:checked){background:var(--surface);color:var(--ink);box-shadow:0 1px 2px #0005}.iconswitch label:has(input:focus-visible){outline:2px solid var(--tungsten);outline-offset:2px}.iconswitch svg{display:block;width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2}
/* 共用勾选框:站内此前一半地方用原生 checkbox(只调了 accent-color,未选中态由浏览器
自绘、没有悬停反馈),另一半用关注列表自绘的那份,两种画法并排出现。统一成这一份。
diff --git a/web/css/22-followmanage.css b/web/css/22-followmanage.css
index 6e35d193a..4dd5e7c39 100644
--- a/web/css/22-followmanage.css
+++ b/web/css/22-followmanage.css
@@ -145,7 +145,7 @@
.fbtn[data-srcfilter-toggle]:hover:not(:disabled),.fbtn.fmanagedir:hover:not(:disabled){border-color:var(--field-ring-hover);background:var(--ground)}
.fbtn[data-srcfilter-toggle][aria-expanded="true"]{border-color:var(--field-ring-focus);box-shadow:0 0 0 4px var(--field-glow)}
.fbtn.small{height:26px;padding:0 10px;font-size:var(--fs-sm)}
-.fbtn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8}
+.fbtn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}
.faddform{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}
/* 没有按钮可以变灰,查找中的唯一凭据就是前缀位上的 Spinner——输入框自己必须还能改。 */
@@ -276,7 +276,7 @@ th[aria-sort="ascending"] .ftsort svg,th[aria-sort="descending"] .ftsort svg{opa
.faliasmanager .fcollapsebody{padding:4px 16px 16px}
.faliassuggestions,.faliasrows{display:grid;gap:6px;margin-top:10px}
.faliassuggest,.faliasrow{display:flex;align-items:center;gap:10px;min-width:0}
-.faliassuggest>span,.faliasrow>span{display:flex;align-items:center;gap:7px;min-width:0;flex:1;flex-wrap:wrap}
+.faliassuggest>span:not(.favatar),.faliasrow>span:not(.favatar){display:flex;align-items:center;gap:7px;min-width:0;flex:1;flex-wrap:wrap}
.faliassuggest i{font-style:normal;color:var(--muted)}
.faliassuggest small{color:var(--muted)}
.faliasform{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:7px;margin-top:10px}
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index f2f482e8c..80da9f0c6 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -699,64 +699,72 @@ function ft({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, p
...s.status === "running" && s.total !== void 0 ? { max: s.total } : {}
}) } });
}
- return /* @__PURE__ */ J(L, { children: [/* @__PURE__ */ J("div", {
- class: "geist-fieldset-content library-processing",
- children: [
- /* @__PURE__ */ J("div", { dangerouslySetInnerHTML: { __html: d("cleanupScrapingTitle", "扫描与采集") } }),
- /* @__PURE__ */ J("p", { children: "扫描媒体文件夹,导入已有资料,采集缺失信息。" }),
- /* @__PURE__ */ J("div", {
- "aria-live": "polite",
- children: [
- s.status === "running" && /* @__PURE__ */ J(L, { children: /* @__PURE__ */ J("div", { dangerouslySetInnerHTML: { __html: s.total ? Fe(`${s.stage || "正在处理"} · ${s.checked || 0} / ${s.total} 个视频`, s.checked || 0, s.total) : f(s.stage || "正在处理") } }) }),
- (l || s.status === "failed") && /* @__PURE__ */ J("div", {
- role: "alert",
- onClick: (e) => {
- e.target.closest("[data-note-action]") && E();
- },
- dangerouslySetInnerHTML: { __html: p(l || s.error || "处理未完成,请重试", {
- variant: "error",
- filled: !0,
- actionLabel: s.status === "failed" ? "重试未完成项" : ""
- }) }
- }),
- s.status === "failed" && !!s.issues?.length && /* @__PURE__ */ J("ul", { children: s.issues.slice(0, 20).map((e) => /* @__PURE__ */ J("li", { children: [
- e.asset_id ? /* @__PURE__ */ J("a", {
- href: `/item/${e.asset_id}`,
- children: "查看视频"
- }) : null,
- e.asset_id ? ":" : "",
- e.message
- ] })) }),
- _ && /* @__PURE__ */ J("div", {
- class: "library-processing-result",
- dangerouslySetInnerHTML: { __html: p(`已扫描 ${s.scanned || 0} 个文件,识别 ${s.identified || 0} 个番号,整理 ${s.candidates || 0} 组资料候选。`, {
- variant: "success",
- label: "处理完成"
- }) }
- })
- ]
- })
- ]
- }), /* @__PURE__ */ J("footer", {
- class: "geist-fieldset-footer",
- "data-geist-fieldset-footer": !0,
+ return /* @__PURE__ */ J(L, { children: [/* @__PURE__ */ J("section", {
+ class: "cleanupfieldset",
+ "data-geist-fieldset": !0,
+ "aria-labelledby": "cleanupScrapingTitle",
+ children: [/* @__PURE__ */ J("div", {
+ class: "geist-fieldset-content library-processing",
+ children: [
+ /* @__PURE__ */ J("div", { dangerouslySetInnerHTML: { __html: d("cleanupScrapingTitle", "扫描与采集") } }),
+ /* @__PURE__ */ J("p", { children: "扫描媒体文件夹,导入已有资料,采集缺失信息。" }),
+ s.status === "running" && /* @__PURE__ */ J("div", {
+ "aria-live": "polite",
+ dangerouslySetInnerHTML: { __html: s.total ? Fe(`${s.stage || "正在处理"} · ${s.checked || 0} / ${s.total} 个视频`, s.checked || 0, s.total) : f(s.stage || "正在处理") }
+ })
+ ]
+ }), /* @__PURE__ */ J("footer", {
+ class: "geist-fieldset-footer",
+ "data-geist-fieldset-footer": !0,
+ children: [
+ /* @__PURE__ */ J("a", {
+ class: "geist-button",
+ href: "/scraping",
+ children: "采集来源"
+ }),
+ !!s.candidates && /* @__PURE__ */ J("a", {
+ class: "geist-button",
+ href: "/review",
+ children: "复核资料"
+ }),
+ s.status !== "failed" && /* @__PURE__ */ J("button", {
+ ref: C,
+ type: "button",
+ class: "geist-button primary",
+ onClick: () => void E(),
+ children: "扫描并补全资料"
+ })
+ ]
+ })]
+ }), /* @__PURE__ */ J("div", {
+ class: "library-processing-outcome",
+ "aria-live": "polite",
children: [
- /* @__PURE__ */ J("a", {
- class: "geist-button",
- href: "/scraping",
- children: "采集来源"
- }),
- !!s.candidates && /* @__PURE__ */ J("a", {
- class: "geist-button",
- href: "/review",
- children: "复核资料"
+ (l || s.status === "failed") && /* @__PURE__ */ J("div", {
+ role: "alert",
+ onClick: (e) => {
+ e.target.closest("[data-note-action]") && E();
+ },
+ dangerouslySetInnerHTML: { __html: p(l || s.error || "处理未完成,请重试", {
+ variant: "error",
+ filled: !0,
+ actionLabel: s.status === "failed" ? "重试未完成项" : ""
+ }) }
}),
- s.status !== "failed" && /* @__PURE__ */ J("button", {
- ref: C,
- type: "button",
- class: "geist-button primary",
- onClick: () => void E(),
- children: "扫描并补全资料"
+ s.status === "failed" && !!s.issues?.length && /* @__PURE__ */ J("ul", { children: s.issues.slice(0, 20).map((e) => /* @__PURE__ */ J("li", { children: [
+ e.asset_id ? /* @__PURE__ */ J("a", {
+ href: `/item/${e.asset_id}`,
+ children: "查看视频"
+ }) : null,
+ e.asset_id ? ":" : "",
+ e.message
+ ] })) }),
+ _ && /* @__PURE__ */ J("div", {
+ class: "library-processing-result",
+ dangerouslySetInnerHTML: { __html: p(`已扫描 ${s.scanned || 0} 个文件,识别 ${s.identified || 0} 个番号,整理 ${s.candidates || 0} 组资料候选。`, {
+ variant: "success",
+ label: "处理完成"
+ }) }
})
]
})] });
@@ -934,9 +942,9 @@ function bt() {
/* @__PURE__ */ J("h2", { children: "数据管理 · 扫描与采集" }),
e === "loading" ? /* @__PURE__ */ J(Y, { html: ht() }) : /* @__PURE__ */ J("div", {
class: "cleanupgrid",
- children: /* @__PURE__ */ J("section", {
+ children: /* @__PURE__ */ J("div", {
id: "libraryProcessing",
- class: "cleanupfieldset",
+ class: "cleanupscraping",
children: /* @__PURE__ */ J(ft, {
data: c,
error: l,
@@ -1088,10 +1096,12 @@ function Et(e) {
});
}
function Dt(e) {
- let t = ".board-ranked-chart,.board-radar,.tasteranks", n = [...e.querySelectorAll(t)];
+ let t = ".board-ranked-chart,.board-radar,.tasteranks,.board-heat-card,.board-sankey-card", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-chart")) return;
- e.dataset.boardChart = "true";
+ e.dataset.boardChart = "true", e.addEventListener("animationend", () => {
+ e.getAnimations?.({ subtree: !0 }).some((e) => e.playState === "running") || e.classList.add("board-chart-settled");
+ });
let t = () => e.classList.add("board-chart-visible");
if (typeof IntersectionObserver > "u" || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
@@ -3839,10 +3849,15 @@ function Zr(e) {
if (!e || !t || t.offsetParent === null) return;
let n = e.closest("main");
n && e.style.setProperty("--review-edge", getComputedStyle(n).paddingLeft), e.style.setProperty("--review-controls-height", `${t.getBoundingClientRect().height}px`);
- for (let n of [t, ...e.querySelectorAll(".reviewgroupbar")]) {
- let e = parseFloat(getComputedStyle(n).top);
- n.classList.toggle("is-stuck", n.offsetParent !== null && window.scrollY > 0 && Number.isFinite(e) && Math.abs(n.getBoundingClientRect().top - e) <= 1);
+ let r = [t, ...e.querySelectorAll(".reviewgroupbar")];
+ for (let e of r) {
+ let t = parseFloat(getComputedStyle(e).top);
+ e.classList.toggle("is-stuck", e.offsetParent !== null && window.scrollY > 0 && Number.isFinite(t) && Math.abs(e.getBoundingClientRect().top - t) <= 1);
}
+ let i = r.filter((e) => e.classList.contains("is-stuck"));
+ if (e.classList.toggle("review-is-stuck", i.length > 0), !i.length) return;
+ let a = i[0].getBoundingClientRect(), o = i[i.length - 1].getBoundingClientRect();
+ e.style.setProperty("--review-pane-left", `${a.left}px`), e.style.setProperty("--review-pane-width", `${a.width}px`), e.style.setProperty("--review-pane-height", `${o.bottom - a.top}px`);
}
function Qr(e, t) {
let n = [[
diff --git a/web/index.html b/web/index.html
index 06866c3ac..d8c0fc421 100644
--- a/web/index.html
+++ b/web/index.html
@@ -91,7 +91,7 @@
<symbol id="i-arrow-up" viewBox="0 0 24 24"><path d="m5 12 7-7 7 7" /><path d="M12 19V5" /></symbol>
<symbol id="i-chart" viewBox="0 0 24 24"><path d="M5 21v-6" /><path d="M12 21V3" /><path d="M19 21V9" /></symbol>
<symbol id="i-settings" viewBox="0 0 24 24"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" /><circle cx="12" cy="12" r="3" /></symbol>
- <symbol id="i-monitor" viewBox="0 0 24 24"><rect width="20" height="14" x="2" y="3" rx="2" /><line x1="8" x2="16" y1="21" y2="21" /><line x1="12" x2="12" y1="17" y2="21" /></symbol><symbol id="i-wrench" viewBox="0 0 24 24"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z" /></symbol><symbol id="i-folder-search" viewBox="0 0 24 24"><path d="M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1" /><path d="m21 21-1.9-1.9" /><circle cx="17" cy="17" r="3" /></symbol><symbol id="i-folder-cog" viewBox="0 0 24 24"><path d="M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3" /><path d="m14.305 19.53.923-.382" /><path d="m15.228 16.852-.923-.383" /><path d="m16.852 15.228-.383-.923" /><path d="m16.852 20.772-.383.924" /><path d="m19.148 15.228.383-.923" /><path d="m19.53 21.696-.382-.924" /><path d="m20.772 16.852.924-.383" /><path d="m20.772 19.148.924.383" /><circle cx="18" cy="18" r="3" /></symbol>
+ <symbol id="i-monitor" viewBox="0 0 24 24"><rect width="20" height="14" x="2" y="3" rx="2" /><line x1="8" x2="16" y1="21" y2="21" /><line x1="12" x2="12" y1="17" y2="21" /></symbol><symbol id="i-wrench" viewBox="0 0 24 24"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z" /></symbol><symbol id="i-folder-search" viewBox="0 0 24 24"><path d="M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1" /><path d="m21 21-1.9-1.9" /><circle cx="17" cy="17" r="3" /></symbol><symbol id="i-folder" viewBox="0 0 24 24"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" /></symbol><symbol id="i-folder-cog" viewBox="0 0 24 24"><path d="M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3" /><path d="m14.305 19.53.923-.382" /><path d="m15.228 16.852-.923-.383" /><path d="m16.852 15.228-.383-.923" /><path d="m16.852 20.772-.383.924" /><path d="m19.148 15.228.383-.923" /><path d="m19.53 21.696-.382-.924" /><path d="m20.772 16.852.924-.383" /><path d="m20.772 19.148.924.383" /><circle cx="18" cy="18" r="3" /></symbol>
<symbol id="i-sun" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4" /><path d="M12 2v2" /><path d="M12 20v2" /><path d="m4.93 4.93 1.41 1.41" /><path d="m17.66 17.66 1.41 1.41" /><path d="M2 12h2" /><path d="M20 12h2" /><path d="m6.34 17.66-1.41 1.41" /><path d="m19.07 4.93-1.41 1.41" /></symbol>
<symbol id="i-moon" viewBox="0 0 24 24"><path d="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401" /></symbol>
<symbol id="i-gauge" viewBox="0 0 24 24"><path d="m12 14 4-4" /><path d="M3.34 19a10 10 0 1 1 17.32 0" /></symbol>
diff --git a/web/js/ui-components.js b/web/js/ui-components.js
index 182630ccf..05a6a45e5 100644
--- a/web/js/ui-components.js
+++ b/web/js/ui-components.js
@@ -575,9 +575,9 @@ export function wireAnchoredMenu(mount,toggle,menu,{side=false}={}){
if(side&&innerWidth>=640){
menu.dataset.placement='right';
menu.style.maxHeight=Math.max(0,innerHeight-32)+'px';
- // 从挂载容器和触发钮两者更靠右的那条边起算:收起的侧栏里触发钮只有 32px 宽,按钮右缘加 8 还落在侧栏里面。
+ // 从挂载容器和触发钮两者更靠右的那条边起算:收起的侧栏里触发钮只有 32px 宽,按它的右缘会落在侧栏里面。
const edge=Math.max(anchor.right,mount.getBoundingClientRect().right);
- menu.style.left=Math.max(16,Math.min(edge+8,innerWidth-width-16))+'px';
+ menu.style.left=Math.max(16,Math.min(edge,innerWidth-width-16))+'px';
menu.style.top=Math.max(16,Math.min(anchor.top,innerHeight-menu.offsetHeight-16))+'px';return;
}
const top=viewportTop(),under=innerHeight-8-anchor.bottom-8,over=anchor.top-8-top;
diff --git a/web/vendor/lucide-ORIGIN.md b/web/vendor/lucide-ORIGIN.md
index 7afdf35ef..e9d1c167a 100644
--- a/web/vendor/lucide-ORIGIN.md
+++ b/web/vendor/lucide-ORIGIN.md
@@ -3,7 +3,7 @@
- npm 包:`[email protected]`
- npm lock integrity:`sha512-ln37Ng6A709exLQH4pBxrbl6FAUk/ZBLTJnLrj02HN/Bb84eUGzlA2JjMglScI0TEab6vH2UVs0hm4vGgLzTrQ==`
- 许可证:ISC;原文见 `lucide-LICENSE.txt`
-- 消费者:`web/index.html` 内联的 114 个 symbol
+- 消费者:`web/index.html` 内联的 115 个 symbol
-雪碧图里另有 7 枚自绘 symbol(shuffle、alert、pics、jav、theater-enter、theater-exit、brand-x)与 16 枚 player-* 前缀的播放器图标,都没有上游可对。
+雪碧图里另有 8 枚自绘 symbol(shuffle、alert、pics、jav、theater-enter、theater-exit、brand-x、brand-instagram)与 16 枚 player-* 前缀的播放器图标,都没有上游可对。
RSS 与拖动点保留填充修正,避免小圆点在全局描边样式下消失。