From 565b5be3d79d3efa5717855395a53f88062d42c6 Mon Sep 17 00:00:00 2001 From: Sakurasan <26715255+Sakurasan@users.noreply.github.com> Date: Thu, 24 Sep 2026 00:30:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=99=E7=99=BD=EF=BC=9A=E6=A1=8C=E9=9D=A2?= =?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?=E9=98=85=E8=AF=BB=E9=A1=B5=E5=AE=BD=E5=B1=8F=E4=B8=89=E6=A0=8F?= =?UTF-8?q?=E5=A4=96=E6=89=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 去卡片(桌面 + 手机统一) - .paper 去掉底色 / 1px 边框 / 20px 圆角 / box-shadow,正文直接落在页面上; 右上角那团强调色渐晕(::before)是卡片的角饰,一并删掉,position/overflow 随之不再需要 - 48px 横向内边距保留:它不是装饰,是「中列 776 - 96 = 680 = --measure」这半个算式, 删了正文要么超出行宽、要么在列里右空 96px;手机上归零(那 48px 在 390 屏上是浪费) 宽屏三栏外扩(≥1200px) - 1100 的画布上限在 1456 的屏上两侧各空 171px,同时中列只有 650px、正文 554px ——根本没到 --measure 的 680。所以「文章太窄」和「留白太大」是同一个原因 - 上限提到 1340,列改 180 / minmax(0,776) / 220 + space-between: 中列 776 = 680(正文) + 48×2(.paper 内边距),正文吃满 --measure 且列内不剩空; space-between 让时间线左缘 / 目录右缘正好落在 28px 内边距上 - 顶栏在阅读页同步放宽(YohakuTop 按 /post/* 加 .top-in.wide),否则品牌和主题键 会比左右栏缩进一百多像素。首页仍 1100 —— 信息流卡片跟着放到 1340 只会把封面拉成条 实测(offsetWidth,.paper 有入场动画的 scale,getBoundingClientRect 会带上它) - 1456:画布 1100 -> 1340,两侧空白 171 -> 51,中列 650 -> 776,正文 554 -> 678 - 1920:两侧空白 403 -> 283;1200 及以下不变;首页 top-in 仍 1100、卡片 1044 - 平铺后桌面 .paper:bg 透明 / border 0 / radius 0 / shadow none / ::before none, 正文 680;手机正文 335(与上一版一致) 修一处自己引入的编译错误:顶栏那个 class 起初命名 wide,与组件里已有的 wide(721px matchMedia)撞名 —— Identifier 'wide' has already been declared, :3000 直接 500、页面全白。已改名 mqWide。 公网 138.2.17.73:8080 产物 md5 与磁盘一致;npm run build 无警告。 --- frontend/src/ui/yohaku/YohakuTop.vue | 14 +++++++++----- frontend/src/ui/yohaku/article.css | 27 ++++++++++++++++----------- frontend/src/ui/yohaku/chrome.css | 5 +++++ frontend/src/ui/yohaku/mobile.css | 13 +++++-------- 4 files changed, 35 insertions(+), 24 deletions(-) diff --git a/frontend/src/ui/yohaku/YohakuTop.vue b/frontend/src/ui/yohaku/YohakuTop.vue index e54eb4c..2807272 100644 --- a/frontend/src/ui/yohaku/YohakuTop.vue +++ b/frontend/src/ui/yohaku/YohakuTop.vue @@ -1,5 +1,5 @@