From dc311ec0a9ce3fc4ce4d9ef0555d75fe6dd28327 Mon Sep 17 00:00:00 2001 From: qiqi Date: Wed, 2 Dec 2026 17:48:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E5=9B=BE=E5=BA=93=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E9=92=AE=E5=9B=9E=E5=8F=B3=E4=B8=8B=E8=A7=92=EF=BC=88=E8=A6=86?= =?UTF-8?q?=E7=9B=96=E5=AE=BF=E4=B8=BB=E6=97=A7=E8=A7=84=E5=88=99=EF=BC=89?= =?UTF-8?q?=E3=80=81=E5=B0=BA=E5=AF=B8=2028=E2=86=9226=E3=80=81=E4=B8=8E?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E8=8A=82=E7=82=B9=E5=90=8C=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/gen-tokens.js | 2 +- src/design-tokens.css | 2 +- style.css | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/gen-tokens.js b/scripts/gen-tokens.js index 30e92ba..8e84ccf 100644 --- a/scripts/gen-tokens.js +++ b/scripts/gen-tokens.js @@ -117,7 +117,7 @@ const SCALE = [ ['--iwb-radius-popover', '14px', '浮层/菜单/右键'], ['--iwb-radius-full', '999px', '圆形/药丸'], // 2026-12-02:下载/浮层「圆形图标按钮」的一组尺寸(宿主 style.css 与 gallery 插件共用同一套变量) - ['--iwb-dl-size', '28px', '下载按钮:直径'], + ['--iwb-dl-size', '26px', '下载按钮:直径'], ['--iwb-dl-radius', 'var(--iwb-radius-full)', '下载按钮:圆角(胶囊/圆)'], ['--iwb-dl-inset', '8px', '下载按钮:距容器右下角内距'], ['--iwb-dl-gap', '4px', '下载按钮:多按钮之间的间距'], diff --git a/src/design-tokens.css b/src/design-tokens.css index 54b0676..c463992 100644 --- a/src/design-tokens.css +++ b/src/design-tokens.css @@ -119,7 +119,7 @@ --iwb-radius-panel: 12px; /* 面板/工具栏 */ --iwb-radius-popover: 14px; /* 浮层/菜单/右键 */ --iwb-radius-full: 999px; /* 圆形/药丸 */ - --iwb-dl-size: 28px; /* 下载按钮:直径 */ + --iwb-dl-size: 26px; /* 下载按钮:直径 */ --iwb-dl-radius: var(--iwb-radius-full); /* 下载按钮:圆角(胶囊/圆) */ --iwb-dl-inset: 8px; /* 下载按钮:距容器右下角内距 */ --iwb-dl-gap: 4px; /* 下载按钮:多按钮之间的间距 */ diff --git a/style.css b/style.css index 6b1ea8c..287fc86 100644 --- a/style.css +++ b/style.css @@ -2589,3 +2589,9 @@ body .iwb-history-embedded .iwb-history-item.iwb-history-selected:hover img { /* 2026-12-02(用户裁定):图库选中只留外框,不显示角标图标 */ body .iwb-history-embedded .iwb-history-check { display: none; } + +/* 2026-12-02:图库卡片的下载按钮回到右下角(插件复用了 .iwb-history-actions, + 宿主旧规则是 left:0;right:0;justify-content:center ⇒ 按钮落在底部中间)。 */ +body .iwb-history-embedded .iwb-history-actions { left: auto; right: var(--iwb-dl-inset); bottom: var(--iwb-dl-inset); justify-content: flex-end; padding: 0; background-image: none; gap: var(--iwb-dl-gap); } +body .iwb-history-embedded .iwb-history-actions .iwb-gal-dl { width: var(--iwb-dl-size); height: var(--iwb-dl-size); border-radius: var(--iwb-dl-radius); border: 1px solid var(--iwb-border2); background: var(--iwb-panel); color: var(--iwb-brand-text, var(--iwb-text)); display: grid; place-items: center; padding: 0; font-size: var(--iwb-font-xs); line-height: 1; cursor: pointer; } +body .iwb-history-embedded .iwb-history-actions .iwb-gal-dl:hover { background: var(--iwb-hover); }