Peach: Local-first video metadata scraper and media manager.
fix(web): 跨图标集归到同一视觉方格,纯文本输入框收进一个 token
longmeidao508726f0a261
diff --git a/scripts/vendor_web_dependencies.mjs b/scripts/vendor_web_dependencies.mjsindex 2d7930e19..eb1c5ed7c 100644--- a/scripts/vendor_web_dependencies.mjs+++ b/scripts/vendor_web_dependencies.mjs@@ -12,6 +12,9 @@ const expectedFiles = new Map();const read = (...parts) => readFileSync(join(root, ...parts));const text = (...parts) => read(...parts).toString("utf8");+// .gitattributes 让整仓签出 LF,而 npm 包里的许可证原文有 CRLF 的。照抄字节的话,+// 提交后签出来的那份和这里算出来的期望值差在换行上,--check 每次都报未同步。+const lfText = (...parts) => text(...parts).replace(/\r\n/g, "\n");const sha256 = value => createHash("sha256").update(value).digest("hex").toUpperCase();const integrity = name => lock.packages[`node_modules/${name}`]?.integrity || "未取得";const stage = (path, value) => expectedFiles.set(path, Buffer.isBuffer(value) ? value : Buffer.from(value));@@ -25,7 +28,7 @@ const copyPackageFiles = ({ packageName, vendorName, files, note }) => {stage(target, payload);hashes.push(`- \`${destination}\` SHA-256:\`${sha256(payload)}\``);}- const license = read("node_modules", packageName, "LICENSE");+ const license = lfText("node_modules", packageName, "LICENSE");stage(`web/vendor/${vendorName}/${version}/LICENSE`, license);stage(`web/vendor/${vendorName}/${version}/ORIGIN.md`,`# ${packageName} ${version}\n\n` +@@ -93,19 +96,26 @@ for (const [symbol, icon] of lucideIcons) {}// Phosphor 是填充图标,Peach 全局是描边:填充声明写在 symbol 上,路径不改一个字,-// 换版本时不必再核每条 path 有没有被补过 fill。viewBox 也和 Lucide 那套不同。-const phosphorIcons = new Map([["text-aa", "text-aa"], ["playlist", "playlist"]]);-const PHOSPHOR_ATTRS = 'viewBox="0 0 256 256" fill="currentColor" stroke="none"';-for (const [symbol, icon] of phosphorIcons) {+// 换版本时不必再核每条 path 有没有被补过 fill。+// viewBox 也不原样照抄:每套图标在自己画格里留的白不一样,同样 15px 画出来一大一小。+// 这里的框是量出来的——把内容外框补到 Lucide 的 20/24 活区,字形按高、图形按长边。+const phosphorIcons = new Map([+ ["text-aa", { icon: "text-aa", viewBox: "-7.3 32.8 262.5 182.9" }],+ ["playlist", { icon: "playlist", viewBox: "10.4 10.5 259.2 259.2" }],+]);+for (const [symbol, { icon, viewBox }] of phosphorIcons) {const inner = svgInner(text("node_modules", "@phosphor-icons/core", "assets", "regular", `${icon}.svg`));- const pattern = new RegExp(`<symbol id="i-${symbol}" ${PHOSPHOR_ATTRS}>[\\s\\S]*?<\\/symbol>`);+ const attrs = `viewBox="${viewBox}" fill="currentColor" stroke="none"`;+ const pattern = new RegExp(`<symbol id="i-${symbol}" ${attrs.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}>[\\s\\S]*?<\\/symbol>`);if (!pattern.test(index)) throw new Error(`缺少 Phosphor symbol:${symbol}`);- index = index.replace(pattern, `<symbol id="i-${symbol}" ${PHOSPHOR_ATTRS}>${inner}</symbol>`);+ index = index.replace(pattern, `<symbol id="i-${symbol}" ${attrs}>${inner}</symbol>`);}const healthInner = svgInner(text("node_modules", "healthicons", "public", "icons", "svg", "outline-24px", "contraceptives", "sperm.svg"));-index = index.replace(/<symbol id="i-sperm" viewBox="0 0 24 24">[\s\S]*?<\/symbol>/,- `<symbol id="i-sperm" viewBox="0 0 24 24">${healthInner}</symbol>`);+const SPERM_VIEWBOX = "1.5 1.2 21.2 21.2";+index = index.replace(+ new RegExp(`<symbol id="i-sperm" viewBox="${SPERM_VIEWBOX}">[\\s\\S]*?<\\/symbol>`),+ `<symbol id="i-sperm" viewBox="${SPERM_VIEWBOX}">${healthInner}</symbol>`);index = index.replace(/Lucide static [0-9.]+, ISC/, `Lucide static ${versions["lucide-static"]}, ISC`);index = index.replace(/Health Icons sperm outline-24px, CC0\/public domain/,`Health Icons ${versions.healthicons} sperm outline-24px, CC0/public domain`);@@ -128,7 +138,7 @@ reuse = reuse.replace(/Video\.js [0-9.]+/, `Video.js ${versions["video.js"]}`);reuse = reuse.replace(/Swiper [0-9.]+/, `Swiper ${versions.swiper}`);stage("docs/REUSE.md", reuse);-stage("web/vendor/lucide-LICENSE.txt", read("node_modules", "lucide-static", "LICENSE"));+stage("web/vendor/lucide-LICENSE.txt", lfText("node_modules", "lucide-static", "LICENSE"));stage("web/vendor/lucide-ORIGIN.md",`# Lucide static ${versions["lucide-static"]}\n\n` +`- npm 包:\`lucide-static@${versions["lucide-static"]}\`\n` +@@ -136,7 +146,7 @@ stage("web/vendor/lucide-ORIGIN.md",`- 许可证:ISC;原文见 \`lucide-LICENSE.txt\`\n` +`- 消费者:\`web/index.html\` 内联的 ${lucideIcons.size} 个 symbol\n\n` +"`i-jav`、`i-alert` 是 Peach 自绘图标;RSS 与拖动点保留填充修正,避免小圆点在全局描边样式下消失。\n");-stage("web/vendor/phosphor-LICENSE.txt", read("node_modules", "@phosphor-icons/core", "LICENSE"));+stage("web/vendor/phosphor-LICENSE.txt", lfText("node_modules", "@phosphor-icons/core", "LICENSE"));stage("web/vendor/phosphor-ORIGIN.md",`# Phosphor icons ${versions["@phosphor-icons/core"]}\n\n` +`- npm 包:\`@phosphor-icons/core@${versions["@phosphor-icons/core"]}\`\n` +@@ -145,7 +155,7 @@ stage("web/vendor/phosphor-ORIGIN.md",`- 消费者:\`web/index.html\` 内联的 ${phosphorIcons.size} 个 regular 权重 symbol\n\n` +"只在描边画法说不清那件事时才用这一套:`text-aa` 是字母表,`playlist` 是播放列表。\n" +"填充声明写在 symbol 上,压住全局的 `stroke:currentColor;fill:none`。\n");-stage("web/vendor/healthicons-LICENSE.txt", read("node_modules", "healthicons", "LICENSE"));+stage("web/vendor/healthicons-LICENSE.txt", lfText("node_modules", "healthicons", "LICENSE"));stage("web/vendor/healthicons-ORIGIN.md",`# Health Icons ${versions.healthicons}\n\n` +`- npm 包:\`healthicons@${versions.healthicons}\`\n` +diff --git a/tests/test_web_ui.py b/tests/test_web_ui.pyindex 3e312bd56..2b8603872 100644--- a/tests/test_web_ui.py+++ b/tests/test_web_ui.py@@ -5012,7 +5012,7 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageLacks("$('#iClose').onclick")def test_entity_and_follow_pages_share_round_video_image_buttons(self):- self.assertPageContains('id="i-pics" viewBox="0 0 16 16" fill="currentColor" stroke="none"')+ self.assertPageContains('id="i-pics" viewBox="-1.6 -1.6 19.2 19.2" fill="currentColor" stroke="none"')self.assertPageContains('export function mediaViewButtonsHtml({')self.assertPageContains('class="mediaviewbutton" type="button" data-media-view="${esc(value)}"')self.assertPageContains("const mediaToggle=photoCount?mediaViewButtonsHtml({active:mediaSelected?'photos':'videos'")@@ -5104,11 +5104,70 @@ class WebUiSourceTests(unittest.TestCase):# 剩下的那一处 list-filter 是真的筛选,不能一起换掉。self.assertPageContains("${icon('list-filter')}<span data-srcfilter-label>")for symbol in ("text-aa", "playlist"):- self.assertPageContains(- f'<symbol id="i-{symbol}" viewBox="0 0 256 256" fill="currentColor" stroke="none">')+ self.assertRegex(+ self.page,+ rf'<symbol id="i-{symbol}" viewBox="[-\d. ]+" fill="currentColor" stroke="none">')self.assertPageContains("Phosphor 2.1.1 regular, MIT")self.assertPageLacks("i-a-large-small")+ def test_mixed_icon_sets_land_on_one_optical_grid(self):+ """同样 15px 要画得一样大,靠的是把内容外框补到 Lucide 的 20/24 活区。++ 每套图标在自己画格里留的白不一样:Phosphor 的框是 256、Health Icons 是 24、+ 自绘的 pics 是 16 且满格出血。照抄 viewBox 的结果是 pics 比邻座大两成、+ Aa 矮一截。这几个框是量出内容外框后算的,换版本时由生成脚本重放。+ """+ for symbol, box in (+ ("pics", "-1.6 -1.6 19.2 19.2"),+ ("text-aa", "-7.3 32.8 262.5 182.9"),+ ("playlist", "10.4 10.5 259.2 259.2"),+ ("sperm", "1.5 1.2 21.2 21.2"),+ ("brand-x", "-0.9 -0.9 25.9 25.9")):+ self.assertPageContains(f'<symbol id="i-{symbol}" viewBox="{box}"')+ # 框由生成脚本负责重放:`npm run vendor:web` 每次都写出同一份。+ generator = (Path(__file__).resolve().parents[1]+ / "scripts" / "vendor_web_dependencies.mjs").read_text(encoding="utf-8")+ self.assertIn('viewBox: "-7.3 32.8 262.5 182.9"', generator)+ 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_a_wide_glyph_gets_a_wide_slot_instead_of_being_shrunk_to_fit(self):+ """1.4:1 的字形锁死方形槽位只能按宽缩,画出来就比满格的邻座矮一截。++ 外层 `<svg>` 的 viewBox 也得跟着 symbol 的比例,否则 `use` 仍旧 meet 进+ 24×24 的方框,把 symbol 那侧的宽框白改了。宽度交给 CSS 按高推。+ """+ self.assertPageContains("const WIDE_ICONS={'text-aa':1.435};")+ self.assertPageContains(+ "const ratio=WIDE_ICONS[name],classes=[ratio?'iconwide':'',cls].filter(Boolean).join(' ');")+ self.assertPageContains(+ "const box=ratio?`0 0 ${(24*ratio).toFixed(2)} 24`:'0 0 24 24';")+ self.assertPageContains(".tagmodes button svg.iconwide{width:auto}")++ def test_plain_text_inputs_share_one_token_so_the_button_beside_them_matches(self):+ """控件高度只有一档:输入框 38px,同一行的按钮照抄这个数。++ 窄屏那条 `font-size:16px!important` 会把没写死高度的输入框抬 3px,旁边的+ 按钮不动,一行里两个控件差一截;播放列表那张表还因为 `flex:1 1 100%`+ 把提交键顶到下一行。纯文本输入框全站共用 `.geist-input`。+ """+ self.assertPageContains(".geist-input{box-sizing:border-box;width:100%;min-width:0;height:38px;")+ self.assertPageContains(".playlistcreate button{height:38px}")+ self.assertPageContains(".faliasform .fbtn{height:38px;min-height:38px}")+ self.assertPageContains(".playlistcreate label{display:grid;gap:5px;color:var(--muted);"+ "font-size:var(--fs-xs);flex:1 1 200px;max-width:320px}")+ self.assertPageLacks(".playlistcreate label{flex:1 1 100%}")+ # 自己拼内边距的那几处已经并入 token,别再冒出第二份。+ self.assertPageLacks(".playlistcreate input,.playlistmeta input{min-width:220px;")+ self.assertPageLacks(".faliasform input{min-width:0;height:34px;")+ for needle in (+ '<label>名称<input class="geist-input" name="name"',+ '<label>新播放列表<input class="geist-input" name="name"',+ '<input class="geist-input" data-playlist-name',+ '<input class="geist-input" name="canonical"',+ '<input class="geist-input" name="alias"'):+ self.assertPageContains(needle)+def test_an_online_tag_opens_the_follow_page_not_a_catalog_filter(self):"""在线标签标注的是还没入库的在线更新,拿去筛目录必然一条不中。"""self.assertPageContains("if(onlineTags){")diff --git a/web/app.js b/web/app.jsindex 6a5c8e81f..88c16947e 100644--- a/web/app.js+++ b/web/app.js@@ -3078,7 +3078,7 @@ function playlistDialog(content){async function saveMixAsPlaylist(mix){if(mix?.kind!=='mix')return;const dialog=playlistDialog({title:'保存 Mix',body:`<form class="playlistcreate" data-save-mix-form>- <label>名称<input name="name" maxlength="80" value="${esc(mix.title)}" required></label>+ <label>名称<input class="geist-input" name="name" maxlength="80" value="${esc(mix.title)}" required></label><button type="submit">保存 ${mix.items.length} 个视频</button><span data-playlist-state></span></form>`});dialog.querySelector('form').onsubmit=async event=>{event.preventDefault();const form=event.currentTarget,stateEl=form.querySelector('[data-playlist-state]');@@ -3092,7 +3092,7 @@ async function openAddToPlaylist(item){const lists=(await api('/api/playlists')).items||[];const rows=lists.map(list=>`<button type="button" class="playlistpickrow" data-add-playlist="${list.id}"><span>${esc(list.name)}</span><small>${list.item_count} 个视频</small></button>`).join('');const dialog=playlistDialog({title:'加入播放列表',body:`<form class="playlistcreate" data-create-playlist>- <label>新播放列表<input name="name" maxlength="80" placeholder="输入名称" required></label><button type="submit">新建并加入</button><span data-playlist-state></span></form>+ <label>新播放列表<input class="geist-input" name="name" maxlength="80" placeholder="输入名称" required></label><button type="submit">新建并加入</button><span data-playlist-state></span></form><div class="playlistpicklist">${rows||'<p class="empty">还没有播放列表</p>'}</div>`});const finish=async body=>{const stateEl=dialog.querySelector('[data-playlist-state]');try{await api('/api/playlist',{method:'POST',body:JSON.stringify(body)});dialog.close();actionReceipt('已加入播放列表')}@@ -3125,9 +3125,9 @@ async function openPlaylists(push=true){const cards=(data.items||[]).map(list=>{const resume=list.current_asset_id||list.preview_asset_id;const poster=list.preview_asset_id?`<img src="/poster?id=${list.preview_asset_id}&c=4" alt="" loading="lazy" data-drop="self">`:'';return `<article class="playlistcard" data-playlist-card="${list.id}"><button class="playlistcover" data-open-playlist="${list.id}" ${resume?'':'disabled'}>${poster}<span>${list.item_count} 个视频</span></button>- <div class="playlistmeta"><input data-playlist-name maxlength="80" value="${esc(list.name)}" aria-label="播放列表名称"><small>${list.source_kind==='mix'?'由 Mix 保存':'手动播放列表'}</small></div>+ <div class="playlistmeta"><input class="geist-input" data-playlist-name maxlength="80" value="${esc(list.name)}" aria-label="播放列表名称"><small>${list.source_kind==='mix'?'由 Mix 保存':'手动播放列表'}</small></div><div class="playlistactions"><button data-rename-playlist="${list.id}">保存名称</button><button data-open-playlist="${list.id}" ${resume?'':'disabled'}>继续播放</button><button class="danger" data-delete-playlist="${list.id}">删除</button></div></article>`}).join('');- $('#stats').innerHTML=`<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><form class="playlistcreate" id="newPlaylist"><label>新播放列表<input name="name" maxlength="80" placeholder="输入名称" required></label><button type="submit">新建</button><span data-playlist-state></span></form></header><div class="playlistcards">${cards||emptyState('playlist','还没有播放列表','保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。')}</div></section>`;+ $('#stats').innerHTML=`<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><form class="playlistcreate" id="newPlaylist"><label>新播放列表<input class="geist-input" name="name" maxlength="80" placeholder="输入名称" required></label><button type="submit">新建</button><span data-playlist-state></span></form></header><div class="playlistcards">${cards||emptyState('playlist','还没有播放列表','保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。')}</div></section>`;$('#newPlaylist').onsubmit=async event=>{event.preventDefault();const form=event.currentTarget;try{await api('/api/playlist',{method:'POST',body:JSON.stringify({action:'create',name:new FormData(form).get('name'),asset_ids:[]})});await openPlaylists(false);actionReceipt('已新建播放列表')}catch(error){form.querySelector('[data-playlist-state]').textContent=error.message||'新建失败'}};@@ -4494,8 +4494,8 @@ function followAliasManager(groups,suggestions){:groups.length?`<span class="faliasbadge">${groups.length} 组</span>`:''}</summary>${detected?`<div class="faliassuggestions">${detected}</div>`:''}<form class="faliasform" id="followAliasAdd">- <input name="canonical" required placeholder="规范作者名" aria-label="规范作者名">- <input name="alias" required placeholder="平台别名" aria-label="平台别名">+ <input class="geist-input" name="canonical" required placeholder="规范作者名" aria-label="规范作者名">+ <input class="geist-input" name="alias" required placeholder="平台别名" aria-label="平台别名"><button class="fbtn" type="submit">保存别名</button></form>${saved?`<div class="faliasrows">${saved}</div>`:'<p class="fnote">还没有保存作者别名。</p>'}diff --git a/web/css/01-base.css b/web/css/01-base.cssindex 05b7e6485..12881c8c0 100644--- a/web/css/01-base.css+++ b/web/css/01-base.css@@ -113,6 +113,18 @@ button,a,input,textarea,select,summary{touch-action:manipulation}border-color:color-mix(in srgb,var(--tungsten) 72%,transparent);box-shadow:0 0 0 3px color-mix(in srgb,var(--tungsten) 26%,transparent)}.geist-search:focus-within .geist-search-prefix{color:var(--ink)}+/* 纯文本输入框:全站唯一一份。此前每处自己拼内边距,控件高度散在 34/40/43 三档,+ 而 <=760px 那条把输入框字号顶到 16 像素的防放大规则只抬没写死高度的那几个,+ 同一行里的按钮不动,两个控件就差一截。+ 高度取 38px,与 .geist-search 同档,旁边的按钮照抄这个数。 */+.geist-input{box-sizing:border-box;width:100%;min-width:0;height:38px;+ border:1px solid var(--border-15);border-radius:var(--control-radius);+ background:var(--ground);color:var(--ink);padding:0 12px;+ font:inherit;font-size:var(--fs-md);line-height:20px;transition:border-color .12s ease}+.geist-input::placeholder{color:var(--muted)}+.geist-input:focus{outline:0;+ border-color:color-mix(in srgb,var(--tungsten) 72%,transparent);+ box-shadow:0 0 0 3px color-mix(in srgb,var(--tungsten) 26%,transparent)}.geist-button{box-sizing:border-box;height:32px;padding:0 6px;border:1px solid var(--border-15);border-radius:var(--control-radius);background:transparent;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:6px;font:inherit;font-size:var(--fs-md);font-weight:500;diff --git a/web/css/04-manage.css b/web/css/04-manage.cssindex d8e29e709..8b2f9767d 100644--- a/web/css/04-manage.css+++ b/web/css/04-manage.css@@ -1,8 +1,11 @@/* 统计页 */.stats{padding:0 0 42px}.playlistpage{padding:4px 0 42px}.playlistpage>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.playlistpage h2{margin:0 0 5px}.playlistpage p{margin:0;color:var(--muted);font-size:var(--fs-sm)}-.playlistcreate{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.playlistcreate label{display:grid;gap:5px;color:var(--muted);font-size:var(--fs-xs)}.playlistcreate input,.playlistmeta input{min-width:220px;border:1px solid var(--border-15);border-radius:var(--control-radius);background:var(--surface);color:var(--ink);padding:9px 11px;font:inherit}.playlistcreate button,.playlistactions button{border:1px solid var(--border-15);border-radius:var(--control-radius);background:transparent;color:var(--ink-2);padding:9px 12px;cursor:pointer}.playlistcreate button:hover,.playlistactions button:hover{background:var(--hover);color:var(--ink)}.playlistcreate [data-playlist-state]{flex-basis:100%;color:var(--drop);font-size:var(--fs-xs)}-.playlistcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}.playlistcard{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;padding:12px;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--surface);min-width:0}.playlistcover{position:relative;aspect-ratio:16/10;border:0;border-radius:var(--surface-radius);background:#000;overflow:hidden;padding:0;cursor:pointer}.playlistcover:disabled{cursor:default}.playlistcover img{width:100%;height:100%;object-fit:cover}.playlistcover span{position:absolute;right:5px;bottom:5px;border-radius:var(--badge-radius);background:#000b;color:#fff;padding:3px 6px;font-size:var(--fs-xs)}.playlistmeta{display:grid;align-content:center;gap:6px;min-width:0}.playlistmeta input{min-width:0;width:100%;font-weight:600}.playlistmeta small{color:var(--muted)}.playlistactions{grid-column:1/-1;display:flex;gap:7px;justify-content:flex-end}.playlistactions .danger{color:var(--drop)}.playlistactions .danger:hover{background:var(--drop);border-color:var(--drop);color:#fff}+.playlistcreate{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.playlistcreate label{display:grid;gap:5px;color:var(--muted);font-size:var(--fs-xs);flex:1 1 200px;max-width:320px}.playlistcreate input{min-width:200px}+/* 提交键与输入框同高才算一行:38px 取自 .geist-input,和「添加关注」那张表一致。 */+.playlistcreate button{height:38px}+.playlistcreate button,.playlistactions button{border:1px solid var(--border-15);border-radius:var(--control-radius);background:transparent;color:var(--ink-2);padding:9px 12px;cursor:pointer}.playlistcreate button:hover,.playlistactions button:hover{background:var(--hover);color:var(--ink)}.playlistcreate [data-playlist-state]{flex-basis:100%;color:var(--drop);font-size:var(--fs-xs)}+.playlistcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}.playlistcard{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;padding:12px;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--surface);min-width:0}.playlistcover{position:relative;aspect-ratio:16/10;border:0;border-radius:var(--surface-radius);background:#000;overflow:hidden;padding:0;cursor:pointer}.playlistcover:disabled{cursor:default}.playlistcover img{width:100%;height:100%;object-fit:cover}.playlistcover span{position:absolute;right:5px;bottom:5px;border-radius:var(--badge-radius);background:#000b;color:#fff;padding:3px 6px;font-size:var(--fs-xs)}.playlistmeta{display:grid;align-content:center;gap:6px;min-width:0}.playlistmeta input{font-weight:600}.playlistmeta small{color:var(--muted)}.playlistactions{grid-column:1/-1;display:flex;gap:7px;justify-content:flex-end}.playlistactions .danger{color:var(--drop)}.playlistactions .danger:hover{background:var(--drop);border-color:var(--drop);color:#fff}.playlistdialog{width:min(520px,calc(100vw - 28px));border:1px solid var(--line);border-radius:var(--floating-radius);background:var(--surface);color:var(--ink);padding:0;box-shadow:0 2px 4px #0003,0 24px 80px #000b}.playlistdialog::backdrop{background:#000a;backdrop-filter:blur(5px)}.playlistdialoghead{display:flex;align-items:center;justify-content:space-between;padding:16px 17px;border-bottom:1px solid var(--line-soft)}.playlistdialoghead h2{margin:0;font-size:var(--fs-xl)}.playlistdialoghead button{width:34px;height:34px;border:0;border-radius:var(--control-radius);background:transparent;color:var(--ink);display:grid;place-items:center;cursor:pointer}.playlistdialoghead button:hover{background:var(--hover)}.playlistdialoghead svg{width:19px;height:19px;stroke:currentColor;fill:none}.playlistdialogbody{padding:17px}.playlistpicklist{display:grid;gap:7px;margin-top:16px;max-height:320px;overflow-y:auto;overscroll-behavior:contain}.playlistpickrow{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--border-10);border-radius:var(--control-radius);background:var(--overlay-5);color:var(--ink);padding:11px 12px;text-align:left;cursor:pointer}.playlistpickrow:hover{background:var(--hover)}.playlistpickrow small{color:var(--muted)}.runtimegate{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:12px;margin:0 0 12px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--meter) 35%,var(--line));border-radius:var(--control-radius);background:color-mix(in srgb,var(--meter) 8%,var(--surface));color:var(--ink);font-size:var(--fs-sm)}.runtimegate>svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.runtimegate span{min-width:0}.runtimegate a{color:var(--ink);font-weight:600;text-decoration:none}.runtimegate a:hover{color:var(--ink-2)}.review{--review-fieldset-height:440px;padding:0 0 42px}.reviewsection{margin-bottom:20px}.reviewsection h3{margin:0 0 9px;font-size:var(--fs-lg)}.reviewlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:14px;align-items:start}diff --git a/web/css/06-index.css b/web/css/06-index.cssindex 116943216..7984f72b2 100644--- a/web/css/06-index.css+++ b/web/css/06-index.css@@ -30,6 +30,8 @@ body.entity-open .index{overflow-x:visible}.tagmodes{display:flex;gap:4px;padding:3px;border:1px solid var(--line-soft);border-radius:var(--surface-radius);background:var(--surface)}.tagmodes button{border:0;border-radius:var(--control-radius);background:transparent;color:var(--muted);padding:6px 10px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}.tagmodes button svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8}+/* 「Aa」是 1.4:1 的字形,宽高都锁 15px 只能按宽缩,画出来比邻座矮一截。 */+.tagmodes button svg.iconwide{width:auto}.tagmodes button:hover{color:var(--ink)}.tagmodes button[aria-pressed="true"]{background:var(--hover);color:var(--ink)}.tagfilters{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 18px}diff --git a/web/css/19-immersive.css b/web/css/19-immersive.cssindex 7810d5543..70b8299fa 100644--- a/web/css/19-immersive.css+++ b/web/css/19-immersive.css@@ -135,7 +135,7 @@.entitycollectionhead{align-items:flex-start;flex-direction:column}.entitycollectionhead .sorts{width:100%;margin-left:0;padding-bottom:2px}.entitycollectionhead .sorts button{min-height:36px}- .playlistpage>header{align-items:stretch;flex-direction:column}.playlistcreate input{min-width:0;width:100%}.playlistcreate label{flex:1 1 100%}.playlistcard{grid-template-columns:92px minmax(0,1fr)}.playlistactions{justify-content:flex-start;overflow-x:auto}.playlistactions button{white-space:nowrap}+ .playlistpage>header{align-items:stretch;flex-direction:column}.playlistcreate label{max-width:none}.playlistcreate input{min-width:0}.playlistcard{grid-template-columns:92px minmax(0,1fr)}.playlistactions{justify-content:flex-start;overflow-x:auto}.playlistactions button{white-space:nowrap}.fb{width:100%}.fb button{flex:1 1 0;min-width:38px}/* 关注详情只有三四个动作键,撑满一行就是四个大得离谱的方块。 */.fb.followdetailactions{width:max-content;max-width:100%}diff --git a/web/css/22-followmanage.css b/web/css/22-followmanage.cssindex 9840a5360..9d1040b00 100644--- a/web/css/22-followmanage.css+++ b/web/css/22-followmanage.css@@ -249,8 +249,7 @@.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}-.faliasform input{min-width:0;height:34px;padding:0 10px;border:1px solid var(--border-15);- border-radius:var(--control-radius);background:var(--ground);color:var(--ink);font:inherit}+.faliasform .fbtn{height:38px;min-height:38px}.faliaschip{display:inline-flex;align-items:center;gap:3px;color:var(--ink-2)}.faliaschip button{width:24px;height:24px;padding:0;border:0;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}diff --git a/web/index.html b/web/index.htmlindex c323f05a9..9aaefa0a5 100644--- a/web/index.html+++ b/web/index.html@@ -21,15 +21,15 @@<symbol id="i-search" viewBox="0 0 24 24"><path d="m21 21-4.34-4.34" /><circle cx="11" cy="11" r="8" /></symbol><symbol id="i-layout-grid" viewBox="0 0 24 24"><rect width="7" height="7" x="3" y="3" rx="1" /><rect width="7" height="7" x="14" y="3" rx="1" /><rect width="7" height="7" x="14" y="14" rx="1" /><rect width="7" height="7" x="3" y="14" rx="1" /></symbol><!-- Beeg PicsIcon,取自 2026-08-30 锁定的 main.9442c3b8.js(module 83646)。 -->- <symbol id="i-pics" viewBox="0 0 16 16" fill="currentColor" stroke="none"><path d="M8 3.5C8 4.052 7.552 4.5 7 4.5C6.448 4.5 6 4.052 6 3.5C6 2.948 6.448 2.5 7 2.5C7.552 2.5 8 2.948 8 3.5Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M3.49402 10.5C3.49402 11.605 4.38902 12.5 5.49402 12.5L14 12.501C15.105 12.501 16 11.606 16 10.501V2.001C16 0.896 15.105 0.001 14 0.001L5.49402 0C4.38902 0 3.49402 0.895 3.49402 2V10.5ZM4.49402 2C4.49402 1.448 4.94202 1 5.49402 1L14 1.001C14.552 1.001 15 1.449 15 2.001V5.84603L14.459 5.30103C14.045 4.88703 13.518 4.71503 13.045 4.71503C12.572 4.71503 12.063 4.87003 11.632 5.30103L9.04502 7.85603C8.91602 7.96603 8.78702 7.98303 8.71902 7.98303C8.64702 7.98303 8.48502 7.96603 8.35502 7.83203L7.64702 7.14803C7.26402 6.82503 6.87702 6.61403 6.23902 6.61403C5.83202 6.61403 5.27002 6.79003 4.87102 7.19903L4.49402 7.58003V2ZM4.49402 8.98503V10.5C4.49402 11.052 4.94202 11.5 5.49402 11.5L14 11.501C14.552 11.501 15 11.053 15 10.501V7.25603L13.752 6.00803C13.521 5.77703 13.23 5.71503 13.045 5.71503C12.85 5.71503 12.556 5.78603 12.339 6.00803L9.76602 8.55303C9.49302 8.82603 9.08202 8.98503 8.75102 8.98503C8.35402 8.98503 8.01102 8.86203 7.71302 8.60403L6.94102 7.86703C6.76302 7.71803 6.54702 7.61303 6.26102 7.61903C5.97402 7.62503 5.74102 7.74803 5.58102 7.90703L4.49402 8.98503Z"/><path d="M0.0310299 12.174C-0.16097 13.262 0.56503 14.299 1.65303 14.491L10.03 15.969C11.119 16.161 12.155 15.435 12.347 14.347L12.496 13.501H11.481L11.362 14.173C11.267 14.717 10.748 15.08 10.204 14.984L1.82703 13.506C1.28303 13.41 0.92003 12.891 1.01603 12.348L2.49203 3.97702C2.49203 3.97302 2.49303 3.96902 2.49403 3.96502V2.40802C1.99103 2.69202 1.61503 3.19002 1.50703 3.80302L0.0310299 12.174Z"/></symbol>+ <symbol id="i-pics" viewBox="-1.6 -1.6 19.2 19.2" fill="currentColor" stroke="none"><path d="M8 3.5C8 4.052 7.552 4.5 7 4.5C6.448 4.5 6 4.052 6 3.5C6 2.948 6.448 2.5 7 2.5C7.552 2.5 8 2.948 8 3.5Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M3.49402 10.5C3.49402 11.605 4.38902 12.5 5.49402 12.5L14 12.501C15.105 12.501 16 11.606 16 10.501V2.001C16 0.896 15.105 0.001 14 0.001L5.49402 0C4.38902 0 3.49402 0.895 3.49402 2V10.5ZM4.49402 2C4.49402 1.448 4.94202 1 5.49402 1L14 1.001C14.552 1.001 15 1.449 15 2.001V5.84603L14.459 5.30103C14.045 4.88703 13.518 4.71503 13.045 4.71503C12.572 4.71503 12.063 4.87003 11.632 5.30103L9.04502 7.85603C8.91602 7.96603 8.78702 7.98303 8.71902 7.98303C8.64702 7.98303 8.48502 7.96603 8.35502 7.83203L7.64702 7.14803C7.26402 6.82503 6.87702 6.61403 6.23902 6.61403C5.83202 6.61403 5.27002 6.79003 4.87102 7.19903L4.49402 7.58003V2ZM4.49402 8.98503V10.5C4.49402 11.052 4.94202 11.5 5.49402 11.5L14 11.501C14.552 11.501 15 11.053 15 10.501V7.25603L13.752 6.00803C13.521 5.77703 13.23 5.71503 13.045 5.71503C12.85 5.71503 12.556 5.78603 12.339 6.00803L9.76602 8.55303C9.49302 8.82603 9.08202 8.98503 8.75102 8.98503C8.35402 8.98503 8.01102 8.86203 7.71302 8.60403L6.94102 7.86703C6.76302 7.71803 6.54702 7.61303 6.26102 7.61903C5.97402 7.62503 5.74102 7.74803 5.58102 7.90703L4.49402 8.98503Z"/><path d="M0.0310299 12.174C-0.16097 13.262 0.56503 14.299 1.65303 14.491L10.03 15.969C11.119 16.161 12.155 15.435 12.347 14.347L12.496 13.501H11.481L11.362 14.173C11.267 14.717 10.748 15.08 10.204 14.984L1.82703 13.506C1.28303 13.41 0.92003 12.891 1.01603 12.348L2.49203 3.97702C2.49203 3.97302 2.49303 3.96902 2.49403 3.96502V2.40802C1.99103 2.69202 1.61503 3.19002 1.50703 3.80302L0.0310299 12.174Z"/></symbol><symbol id="i-square-check-big" viewBox="0 0 24 24"><path d="M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344" /><path d="m9 11 3 3L22 4" /></symbol><symbol id="i-refresh-cw" viewBox="0 0 24 24"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" /><path d="M21 3v5h-5" /><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" /><path d="M8 16H3v5" /></symbol><symbol id="i-user-round" viewBox="0 0 24 24"><circle cx="12" cy="8" r="5" /><path d="M20 21a8 8 0 0 0-16 0" /></symbol><symbol id="i-tags" viewBox="0 0 24 24"><path d="M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z" /><path d="M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193" /><circle cx="10.5" cy="6.5" r=".5" fill="currentColor" /></symbol><symbol id="i-star" viewBox="0 0 24 24"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z" /></symbol><symbol id="i-list-filter" viewBox="0 0 24 24"><path d="M2 5h20" /><path d="M6 12h12" /><path d="M9 19h6" /></symbol>- <symbol id="i-text-aa" viewBox="0 0 256 256" fill="currentColor" stroke="none"><path d="M87.24,52.59a8,8,0,0,0-14.48,0l-64,136a8,8,0,1,0,14.48,6.81L39.9,160h80.2l16.66,35.4a8,8,0,1,0,14.48-6.81ZM47.43,144,80,74.79,112.57,144ZM200,96c-12.76,0-22.73,3.47-29.63,10.32a8,8,0,0,0,11.26,11.36c3.8-3.77,10-5.68,18.37-5.68,13.23,0,24,9,24,20v3.22A42.76,42.76,0,0,0,200,128c-22.06,0-40,16.15-40,36s17.94,36,40,36a42.73,42.73,0,0,0,24-7.25,8,8,0,0,0,16-.75V132C240,112.15,222.06,96,200,96Zm0,88c-13.23,0-24-9-24-20s10.77-20,24-20,24,9,24,20S213.23,184,200,184Z"/></symbol>- <symbol id="i-playlist" viewBox="0 0 256 256" fill="currentColor" stroke="none"><path d="M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72H160a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm72,48H40a8,8,0,0,0,0,16h72a8,8,0,0,0,0-16Zm135.66-57.7a8,8,0,0,1-10,5.36L208,122.75V192a32.05,32.05,0,1,1-16-27.69V112a8,8,0,0,1,10.3-7.66l40,12A8,8,0,0,1,247.66,126.3ZM192,192a16,16,0,1,0-16,16A16,16,0,0,0,192,192Z"/></symbol>+ <symbol id="i-text-aa" viewBox="-7.3 32.8 262.5 182.9" fill="currentColor" stroke="none"><path d="M87.24,52.59a8,8,0,0,0-14.48,0l-64,136a8,8,0,1,0,14.48,6.81L39.9,160h80.2l16.66,35.4a8,8,0,1,0,14.48-6.81ZM47.43,144,80,74.79,112.57,144ZM200,96c-12.76,0-22.73,3.47-29.63,10.32a8,8,0,0,0,11.26,11.36c3.8-3.77,10-5.68,18.37-5.68,13.23,0,24,9,24,20v3.22A42.76,42.76,0,0,0,200,128c-22.06,0-40,16.15-40,36s17.94,36,40,36a42.73,42.73,0,0,0,24-7.25,8,8,0,0,0,16-.75V132C240,112.15,222.06,96,200,96Zm0,88c-13.23,0-24-9-24-20s10.77-20,24-20,24,9,24,20S213.23,184,200,184Z"/></symbol>+ <symbol id="i-playlist" viewBox="10.4 10.5 259.2 259.2" fill="currentColor" stroke="none"><path d="M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72H160a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm72,48H40a8,8,0,0,0,0,16h72a8,8,0,0,0,0-16Zm135.66-57.7a8,8,0,0,1-10,5.36L208,122.75V192a32.05,32.05,0,1,1-16-27.69V112a8,8,0,0,1,10.3-7.66l40,12A8,8,0,0,1,247.66,126.3ZM192,192a16,16,0,1,0-16,16A16,16,0,0,0,192,192Z"/></symbol><symbol id="i-sort" viewBox="0 0 24 24"><path d="m3 16 4 4 4-4" /><path d="M7 20V4" /><path d="M11 4h10" /><path d="M11 8h7" /><path d="M11 12h4" /></symbol><symbol id="i-arrow-down" viewBox="0 0 24 24"><path d="M12 5v14" /><path d="m19 12-7 7-7-7" /></symbol><symbol id="i-arrow-up" viewBox="0 0 24 24"><path d="m5 12 7-7 7 7" /><path d="M12 19V5" /></symbol>@@ -102,9 +102,9 @@不吃通用的 `stroke:currentColor;fill:none`。只做 X 一个:416 条社媒链接里 372 条(89%)是 x.com/twitter.com,而 X 恰好会挡掉 favicon 请求——资料页上那个空白白圆就是它。其余主机继续走 favicon。 -->- <symbol id="i-brand-x" viewBox="0 0 24 24"><path fill="currentColor" stroke="none" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></symbol>+ <symbol id="i-brand-x" viewBox="-0.9 -0.9 25.9 25.9"><path fill="currentColor" stroke="none" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></symbol><symbol id="i-bookmark-plus" viewBox="0 0 24 24"><path d="M12 7v6" /><path d="M15 10H9" /><path d="M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z" /></symbol>- <symbol id="i-sperm" viewBox="0 0 24 24"><path d="M18.2574 3.04039C16.6079 3.3153 15.3153 4.60785 15.0404 6.25731C14.9261 6.94343 15.1179 7.59015 15.5007 8.08229L15.1947 8.49031C14.8361 8.96852 14.2732 9.24995 13.6754 9.24995H12.8524C10.9372 9.24995 9.58486 11.1262 10.1905 12.9431L10.3037 13.2827C10.5666 14.0715 9.88821 14.8537 9.07014 14.705C7.36157 14.3943 5.83623 15.8176 6.02801 17.5435L6.05171 17.7569C6.12353 18.4033 5.68919 18.9973 5.05144 19.1248L4.35291 19.2645C3.94674 19.3458 3.68333 19.7409 3.76456 20.147C3.8458 20.5532 4.24092 20.8166 4.64709 20.7354L5.34562 20.5957C6.74631 20.3155 7.70028 19.0109 7.54253 17.5912L7.51883 17.3779C7.43795 16.65 8.08124 16.0497 8.80181 16.1808C10.7416 16.5334 12.3502 14.6787 11.7267 12.8083L11.6135 12.4688C11.3317 11.6232 11.9611 10.75 12.8524 10.75H13.6754C14.7453 10.75 15.7528 10.2462 16.3947 9.39031L16.7517 8.9143C17.0623 8.99708 17.3975 9.01704 17.7426 8.95951C19.3921 8.6846 20.6847 7.39205 20.9596 5.7426C21.2244 4.15334 19.8466 2.77552 18.2574 3.04039Z" fill="currentColor"/><path d="M11.0548 3.32416C10.1507 3.47484 9.41308 4.15197 9.17192 5.03625C9.06125 5.44203 9.13468 5.83765 9.32677 6.15771L8.8594 6.85877C8.69647 7.10316 8.42219 7.24995 8.12847 7.24995H7.75C6.64543 7.24995 5.75 8.14538 5.75 9.24995C5.75 9.52609 5.52614 9.74995 5.25 9.74995C4.14543 9.74995 3.25 10.6454 3.25 11.75V12C3.25 12.4142 3.58579 12.75 4 12.75C4.41421 12.75 4.75 12.4142 4.75 12V11.75C4.75 11.4738 4.97386 11.25 5.25 11.25C6.35457 11.25 7.25 10.3545 7.25 9.24995C7.25 8.97381 7.47386 8.74995 7.75 8.74995H8.12847C8.92372 8.74995 9.66635 8.35251 10.1075 7.69082L10.6492 6.87823C10.7526 6.87326 10.8578 6.85692 10.9637 6.82804C11.848 6.58687 12.5251 5.84929 12.6758 4.94518C12.8347 3.9918 12.0081 3.16526 11.0548 3.32416Z" fill="currentColor"/><path d="M18.1471 11.3088C17.2045 11.4659 16.4659 12.2045 16.3088 13.147C16.2724 13.3658 16.2904 13.5775 16.3514 13.7709L15.0321 15.31C14.7928 15.5892 14.4434 15.75 14.0756 15.75C13.1529 15.75 12.2912 16.2111 11.7793 16.9789L11.7373 17.0419C11.4196 17.5185 11.25 18.0785 11.25 18.6513V19C11.25 19.4142 11.5858 19.75 12 19.75C12.4142 19.75 12.75 19.4142 12.75 19V18.6513C12.75 18.3747 12.8319 18.1042 12.9854 17.874L13.0274 17.8109C13.261 17.4605 13.6544 17.25 14.0756 17.25C14.8813 17.25 15.6467 16.8979 16.171 16.2862L17.5255 14.706C17.6318 14.7141 17.7415 14.7097 17.8529 14.6911C18.7955 14.534 19.5341 13.7954 19.6912 12.8529C19.8425 11.9447 19.0552 11.1574 18.1471 11.3088Z" fill="currentColor"/></symbol>+ <symbol id="i-sperm" viewBox="1.5 1.2 21.2 21.2"><path d="M18.2574 3.04039C16.6079 3.3153 15.3153 4.60785 15.0404 6.25731C14.9261 6.94343 15.1179 7.59015 15.5007 8.08229L15.1947 8.49031C14.8361 8.96852 14.2732 9.24995 13.6754 9.24995H12.8524C10.9372 9.24995 9.58486 11.1262 10.1905 12.9431L10.3037 13.2827C10.5666 14.0715 9.88821 14.8537 9.07014 14.705C7.36157 14.3943 5.83623 15.8176 6.02801 17.5435L6.05171 17.7569C6.12353 18.4033 5.68919 18.9973 5.05144 19.1248L4.35291 19.2645C3.94674 19.3458 3.68333 19.7409 3.76456 20.147C3.8458 20.5532 4.24092 20.8166 4.64709 20.7354L5.34562 20.5957C6.74631 20.3155 7.70028 19.0109 7.54253 17.5912L7.51883 17.3779C7.43795 16.65 8.08124 16.0497 8.80181 16.1808C10.7416 16.5334 12.3502 14.6787 11.7267 12.8083L11.6135 12.4688C11.3317 11.6232 11.9611 10.75 12.8524 10.75H13.6754C14.7453 10.75 15.7528 10.2462 16.3947 9.39031L16.7517 8.9143C17.0623 8.99708 17.3975 9.01704 17.7426 8.95951C19.3921 8.6846 20.6847 7.39205 20.9596 5.7426C21.2244 4.15334 19.8466 2.77552 18.2574 3.04039Z" fill="currentColor"/><path d="M11.0548 3.32416C10.1507 3.47484 9.41308 4.15197 9.17192 5.03625C9.06125 5.44203 9.13468 5.83765 9.32677 6.15771L8.8594 6.85877C8.69647 7.10316 8.42219 7.24995 8.12847 7.24995H7.75C6.64543 7.24995 5.75 8.14538 5.75 9.24995C5.75 9.52609 5.52614 9.74995 5.25 9.74995C4.14543 9.74995 3.25 10.6454 3.25 11.75V12C3.25 12.4142 3.58579 12.75 4 12.75C4.41421 12.75 4.75 12.4142 4.75 12V11.75C4.75 11.4738 4.97386 11.25 5.25 11.25C6.35457 11.25 7.25 10.3545 7.25 9.24995C7.25 8.97381 7.47386 8.74995 7.75 8.74995H8.12847C8.92372 8.74995 9.66635 8.35251 10.1075 7.69082L10.6492 6.87823C10.7526 6.87326 10.8578 6.85692 10.9637 6.82804C11.848 6.58687 12.5251 5.84929 12.6758 4.94518C12.8347 3.9918 12.0081 3.16526 11.0548 3.32416Z" fill="currentColor"/><path d="M18.1471 11.3088C17.2045 11.4659 16.4659 12.2045 16.3088 13.147C16.2724 13.3658 16.2904 13.5775 16.3514 13.7709L15.0321 15.31C14.7928 15.5892 14.4434 15.75 14.0756 15.75C13.1529 15.75 12.2912 16.2111 11.7793 16.9789L11.7373 17.0419C11.4196 17.5185 11.25 18.0785 11.25 18.6513V19C11.25 19.4142 11.5858 19.75 12 19.75C12.4142 19.75 12.75 19.4142 12.75 19V18.6513C12.75 18.3747 12.8319 18.1042 12.9854 17.874L13.0274 17.8109C13.261 17.4605 13.6544 17.25 14.0756 17.25C14.8813 17.25 15.6467 16.8979 16.171 16.2862L17.5255 14.706C17.6318 14.7141 17.7415 14.7097 17.8529 14.6911C18.7955 14.534 19.5341 13.7954 19.6912 12.8529C19.8425 11.9447 19.0552 11.1574 18.1471 11.3088Z" fill="currentColor"/></symbol></svg><header class="top">diff --git a/web/js/core.js b/web/js/core.jsindex 7d8da5883..b8748ae62 100644--- a/web/js/core.js+++ b/web/js/core.js@@ -5,7 +5,13 @@`route()` 没有放进来:它要调 syncHeaderActions/paintListTitle,那是 UI 层的事。 */const $=s=>document.querySelector(s);-const icon=(name,cls='')=>`<svg${cls?` class="${cls}"`:''} viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${name}"/></svg>`;+/* 方形槽位里塞不进 1.4:1 的字形:按宽度对齐它就矮一截,挨着满格的 Lucide+ 图标看就是小一号。这几枚外层 viewBox 跟着 symbol 的比例走,槽位由 CSS 按高定宽。 */+const WIDE_ICONS={'text-aa':1.435};+const icon=(name,cls='')=>{+ const ratio=WIDE_ICONS[name],classes=[ratio?'iconwide':'',cls].filter(Boolean).join(' ');+ const box=ratio?`0 0 ${(24*ratio).toFixed(2)} 24`:'0 0 24 24';+ return `<svg${classes?` class="${classes}"`:''} viewBox="${box}" aria-hidden="true"><use href="#i-${name}"/></svg>`};/* `signal` 写成显式的一项,不靠 Object.assign 顺带透传:表面切换要能作废上一屏还没读完的请求,「这个请求可被取消」得在签名上看得见。 */const api=async(p,o)=>{