From dcf510ef2863d21318195518990c4c684f9d17b8 Mon Sep 17 00:00:00 2001 From: laoyang Date: Tue, 3 Nov 2026 18:58:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E4=B8=89=E5=A4=84=E5=88=97?= =?UTF-8?q?=E8=A1=A8/=E8=AF=A6=E6=83=85=EF=BC=9A=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E9=A1=B6=E5=A4=B4=E7=8B=AC=E5=8D=A0=E4=B8=80=E8=A1=8C=EF=BC=8C?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E4=B8=8B=E7=A7=BB=EF=BC=88=E4=B8=8E=E5=89=8D?= =?UTF-8?q?=E5=8F=B0=E7=BB=9F=E4=B8=80=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 用户:「管理后台的待审核和全部问题那个列表里面也是一样的。 标题应该顶头,然后在标题下面另起一行,写上来自于哪一个软件、 它的状态是什么、它是什么分类。点到一个具体的反馈里面也是一样的, 标题顶头,然后把同步日历、bug、待处理往下一行。管理后台也是全部按照这种方式去处理。」 改三处: 1. fb_admin_pending_row(待审核列表) prow-top(标签在前+标题)→ prow-head(标题独占一行)+ prow-tags(软件/分类/状态) 2. 全部问题列表 item-top → item-head + item-tags 🔴 同时补上软件名(fb_software_chip)—— 后台是跨软件视图, 前台某个软件内部不需要显示软件名(满页同一个),后台必须显示。 3. 后台详情页头部 item-top → item-head + item-tags,标题字号 19px 略大于列表 样式新增 .prow-head / .prow-tags(.prow-top 保留给操作日志, 日志条目只有「动作+编号」,单行反而合适)。 验证(真实渲染 + 浏览器测量,不登录后台、不动数据): 待审核行 标题 top=87 left=222 / 标签 top=119 left=222 → 标签在下方、左对齐 0px 偏差 全部问题 标题 top=318 left=223 / 标签 top=351 left=223 → 同上 详情头 标题 top=541 left=228 / 标签 top=575 left=228 → 同上 另外静态检查:三处的 head 段内均无状态标签,tags 段内均含软件/分类/状态。 前台 5 个路由 200,未受影响。 --- admin.php | 45 ++++++++++++++++++++++++++++++++------------- assets/style.css | 7 ++++++- bootstrap.php | 2 +- lib/bootstrap.php | 2 +- 4 files changed, 40 insertions(+), 16 deletions(-) diff --git a/admin.php b/admin.php index 9bc6c0b..1527b06 100644 --- a/admin.php +++ b/admin.php @@ -754,11 +754,20 @@ fb_layout_head('管理后台', ['robots' => 'noindex,nofollow']);
-
- - + +
# +
+
+ + + 未公开

@@ -797,16 +806,21 @@ fb_layout_head('管理后台', ['robots' => 'noindex,nofollow']);
-
- + + +
+ + # +
+
- - #
@@ -1450,14 +1464,19 @@ function fb_admin_pending_row(array $t) {
-
+ +
+ + # +
+
- - #

diff --git a/assets/style.css b/assets/style.css index e24a1e2..c61a55e 100644 --- a/assets/style.css +++ b/assets/style.css @@ -548,10 +548,15 @@ main.wrap{padding-top:24px; padding-bottom:40px; min-height:60vh} } .prow:hover{border-color:var(--line-strong)} .prow-main{flex:1; min-width:0} +/* 后台待审核条目:标题顶头独占一行 → 标签行 → 摘要 → 作者信息 + * ⚠️ .prow-top 仍被「操作日志」那处复用(日志条目只有动作+编号,单行更合适), + * 所以这里保留它,另外新增 .prow-head / .prow-tags 给反馈条目用。 */ .prow-top{display:flex; align-items:center; flex-wrap:wrap; gap:8px} +.prow-head{display:flex; align-items:flex-start; gap:8px} +.prow-tags{display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:7px} .prow-title{ font-weight:600; font-size:15.5px; color:var(--fg); - flex:1; min-width:160px; word-break:break-word; + flex:1; min-width:0; word-break:break-word; line-height:1.45; } .prow-title:hover{color:var(--brand); text-decoration:underline} .prow-ex{ diff --git a/bootstrap.php b/bootstrap.php index a3603f4..8e0f27d 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -8,7 +8,7 @@ if (!defined('FB_ROOT')) { define('FB_ROOT', dirname(__DIR__)); // 静态资源版本号:改 assets/ 下的 css/js 后把这个数字 +1, // 让浏览器与 CDN 缓存失效。全站只此一处,别再往页面里写死数字。 - if (!defined('FB_ASSET_V')) { define('FB_ASSET_V', 31); } + if (!defined('FB_ASSET_V')) { define('FB_ASSET_V', 37); } } /* ------------------------------------------------------------------ diff --git a/lib/bootstrap.php b/lib/bootstrap.php index 0ca8cad..8e0f27d 100644 --- a/lib/bootstrap.php +++ b/lib/bootstrap.php @@ -8,7 +8,7 @@ if (!defined('FB_ROOT')) { define('FB_ROOT', dirname(__DIR__)); // 静态资源版本号:改 assets/ 下的 css/js 后把这个数字 +1, // 让浏览器与 CDN 缓存失效。全站只此一处,别再往页面里写死数字。 - if (!defined('FB_ASSET_V')) { define('FB_ASSET_V', 36); } + if (!defined('FB_ASSET_V')) { define('FB_ASSET_V', 37); } } /* ------------------------------------------------------------------