From 5f82b6012f972c247e5dd98409d1fb12cee01fad Mon Sep 17 00:00:00 2001 From: Sakurasan <26715255+Sakurasan@users.noreply.github.com> Date: Thu, 24 Sep 2026 00:09:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=99=E7=99=BD=EF=BC=9A=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E7=AB=AF=E6=96=87=E7=AB=A0=E5=8E=BB=E5=8D=A1=E7=89=87=20+=20?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=B5=81=E5=85=83=E4=BF=A1=E6=81=AF=E4=B8=8B?= =?UTF-8?q?=E7=A7=BB=20+=20=E6=A0=87=E7=AD=BE=E7=BB=9F=E4=B8=80=E4=B8=BA?= =?UTF-8?q?=E7=BA=AF=E6=96=87=E6=9C=AC=20#=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 信息流(首页) - 元信息(类型 / 日期 / 时长 / 字数)从标题上方挪到摘要之后,和标签同一块: 卡片开头只留标题摘要,读完再看「什么时候、多长」 - 标签去掉 chip 样式,改为纯文本 #标签(# 走 ::before,链接的可读名仍是标签本身); 原来那排药丸看着能点,其实是卡片链接里的 span,点哪儿都进文章 - .card .tags / .note .tags 间距 6px -> 14px,配合纯文本 文章详情页 - 手机上不再套卡片:.article-layout 28px + .paper 22px + 卡片边框三层一共 吃掉约 84px,390 屏上正文只剩 275px;平铺后 330px。同时关掉卡片右上角 那团强调色渐晕(::before,卡片没了就只剩一块脏)。桌面 / 平板仍是卡片 - 底部标签跟信息流统一成纯文本 #标签,并去掉「标签」二字的小标 (有 # 就是标签,再来两个字是重复) - 详情页的标签是链接,补 padding:6px 0 —— 12.5px 裸文字按下去只有 ~18px 高, 手机上不好点;不画背景不画边框,观感不变 标签样式只有 home.css 一处 .tg,信息流与详情页共用。 验证:headless Chromium 从站上量取计算样式 + 截图(390 / 1280) - 详情页手机:paper bg=透明 border=0 radius=0 shadow=none padding=0,::before=none, 正文 330px;桌面:bg=#fffefb border=1px radius=20px padding=48px,::before=block - .end 子元素只剩 [A.tg, A.tg];.tg 12.5px / padding 0 / ::before "#";gap 14px - 公网 138.2.17.73:8080 产物 md5 与磁盘一致;npm run build 无警告 --- frontend/src/ui/yohaku/YohakuArticle.vue | 1 - frontend/src/ui/yohaku/YohakuFeed.vue | 12 +++++++----- frontend/src/ui/yohaku/article.css | 8 ++++++-- frontend/src/ui/yohaku/home.css | 21 ++++++++++----------- frontend/src/ui/yohaku/mobile.css | 9 ++++++++- 5 files changed, 31 insertions(+), 20 deletions(-) diff --git a/frontend/src/ui/yohaku/YohakuArticle.vue b/frontend/src/ui/yohaku/YohakuArticle.vue index de1144a..fdb5a71 100644 --- a/frontend/src/ui/yohaku/YohakuArticle.vue +++ b/frontend/src/ui/yohaku/YohakuArticle.vue @@ -168,7 +168,6 @@ function onTocClick(e) {
- 标签 {{ t }}
diff --git a/frontend/src/ui/yohaku/YohakuFeed.vue b/frontend/src/ui/yohaku/YohakuFeed.vue index 7be7714..c46f99f 100644 --- a/frontend/src/ui/yohaku/YohakuFeed.vue +++ b/frontend/src/ui/yohaku/YohakuFeed.vue @@ -1,8 +1,10 @@