
kate522andClaude Fable 5
f61142ee9a
fix(pagination): align the load-more skeleton width with the cards
首页「加载更多」的骨架比列表本身宽出一截:.posts-row 用
margin-left/right:-8px 抵消卡片的水平边距,而卡片边距规则是
`.posts-row > *:not(.post_ajax_loader)`,把骨架排除在补偿链之外,
于是骨架左右各宽出 8px(合计 16px)。移动端的 5px 覆盖块同理。
小工具的 .widget-ajaxpager / tab pane 也是一条独立的负边距补偿链
(margin: -8px 抵消 .posts-item 的 8px),骨架同样溢出。
修法是给骨架补上与卡片等同的水平边距,而不是写 inline display
(会盖过 .is-loading 类规则)。改了 main.css、post-card.css 的
8px / 5px 两组规则,用户中心面板另加一条归零规则,因为那里的
容器 margin 与卡片边距都已清零,不能再叠加补偿。
顺带补一条契约测试:删掉任一 gutter 规则即失败,防止回归。
Verification:
- node --test tests/**/*.test.cjs 471 passed / 0 failed
- php tests/widget-system/run.php 136 assertions
- php tools/audit-widget-system.php
- php tools/audit-admin-contracts.php errors=0 (56 既有 baseline 警告)
- node tools/build-public-assets.mjs CSS/JS 产物已重建
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-10-04 00:25:26 +08:00
..
2026-09-21 20:53:12 +08:00
2026-09-21 20:53:12 +08:00
2026-09-26 21:43:24 +08:00
2026-10-04 00:25:26 +08:00
2026-09-19 12:54:22 +08:00
2026-09-19 11:34:12 +08:00
2026-09-06 12:59:44 +08:00
2026-09-02 13:03:24 +08:00
2026-09-21 20:53:22 +08:00
2026-09-03 13:59:07 +08:00
2026-09-24 11:04:49 +08:00
2026-09-18 18:38:07 +08:00
2026-08-29 15:50:04 +08:00
2026-09-24 21:13:24 +08:00
2026-08-30 20:38:25 +08:00
2026-09-27 00:37:00 +08:00
2026-09-04 19:52:56 +08:00
2026-09-03 12:44:31 +08:00
2026-09-24 21:30:05 +08:00
2026-09-13 20:02:56 +08:00
2026-09-19 11:46:01 +08:00
2026-09-04 22:53:33 +08:00
2026-09-24 11:04:49 +08:00
2026-09-05 17:32:18 +08:00
2026-09-19 17:06:19 +08:00
2026-09-26 20:44:50 +08:00
2026-09-21 21:31:16 +08:00
2026-09-05 22:28:19 +08:00
2026-10-03 22:22:15 +08:00
2026-08-25 18:22:30 +08:00
2026-08-25 18:11:26 +08:00
2026-08-25 18:34:17 +08:00
2026-09-03 12:44:31 +08:00
2026-09-02 13:03:24 +08:00
2026-09-18 17:34:00 +08:00
2026-09-16 17:24:22 +08:00
2026-09-18 22:14:27 +08:00
2026-08-25 06:58:09 +08:00
2026-09-18 19:01:19 +08:00
2026-09-24 20:40:30 +08:00
2026-10-03 22:22:15 +08:00
2026-09-28 21:27:44 +08:00
2026-09-28 21:58:43 +08:00
2026-09-22 19:53:03 +08:00
2026-09-21 20:53:12 +08:00
2026-09-04 22:53:33 +08:00
2026-09-21 20:53:12 +08:00
2026-09-24 16:13:00 +08:00
2026-09-19 14:49:58 +08:00
2026-09-17 19:04:47 +08:00
2026-08-23 22:09:12 +08:00
2026-09-03 21:33:30 +08:00
2026-09-03 21:33:30 +08:00
2026-09-24 16:13:00 +08:00
2026-09-14 12:53:20 +08:00
2026-09-23 14:30:54 +08:00
2026-10-03 22:22:15 +08:00