From bb9637f30a47ee40d1c8fa66c1be9cdedc798b37 Mon Sep 17 00:00:00 2001 From: huangjianwu Date: Thu, 7 May 2026 12:15:05 +0800 Subject: [PATCH] =?UTF-8?q?ui(extension):=20=E4=BE=A7=E8=BE=B9=E6=A0=8F?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E6=94=B6=E7=B4=A7=EF=BC=8C=E7=BB=99=E7=AC=94?= =?UTF-8?q?=E8=AE=B0=E5=86=85=E5=AE=B9=E6=9B=B4=E5=A4=9A=E5=91=BC=E5=90=B8?= =?UTF-8?q?=E7=A9=BA=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前侧边栏堆了:96×56 大封面 + 标题 + URL 链接 + 8 段进度条 + 'Markdown/思维导图/AI 问答' tab + MarkdownView 自带的复制/下载条 + 内容标题 …… 在窄侧栏里太挤,主内容被压到下半屏。 重做: - 顶栏极简化:左边 'BiliNote',右边「历史 N」按钮 + 「设置」按钮 - 历史任务从底部 details 改成顶栏触发的下拉面板,用了再展开 - 标题区压成一行:12×7 小封面 + 单行标题(hover 显示完整 URL,点击跳原片)+ 行尾状态徽章 · 进行中:蓝色阶段名 + 脉冲动画 · 完成:绿色 ✓ · 失败:红色徽章 + tooltip 显示原因 - 进度条只在 isRunning 时渲染;完成后整段消失 - 视图 tab 与「复制 / 下载」按钮合并到同一行(仅 markdown 视图显示) - MarkdownView 加 hideActions prop,去掉它自带的按钮区,避免重复;同时去掉 max-h-[400px],撑满父容器 Co-Authored-By: Claude Opus 4.7 (1M context) --- .../src/components/MarkdownView.vue | 8 +- .../src/sidepanel/Sidepanel.vue | 191 +++++++++++++----- 2 files changed, 145 insertions(+), 54 deletions(-) diff --git a/BillNote_extension/src/components/MarkdownView.vue b/BillNote_extension/src/components/MarkdownView.vue index a007bf5..bc1e8d1 100644 --- a/BillNote_extension/src/components/MarkdownView.vue +++ b/BillNote_extension/src/components/MarkdownView.vue @@ -3,7 +3,7 @@ import { computed } from 'vue' import MarkdownIt from 'markdown-it' import { absolutizeMarkdownImages } from '~/logic/api' -const props = defineProps<{ markdown: string, title?: string }>() +const props = defineProps<{ markdown: string, title?: string, hideActions?: boolean }>() const md = new MarkdownIt({ html: false, linkify: true, breaks: true }) @@ -25,12 +25,12 @@ function download() { diff --git a/BillNote_extension/src/sidepanel/Sidepanel.vue b/BillNote_extension/src/sidepanel/Sidepanel.vue index 9e71265..e2587ac 100644 --- a/BillNote_extension/src/sidepanel/Sidepanel.vue +++ b/BillNote_extension/src/sidepanel/Sidepanel.vue @@ -1,7 +1,7 @@