Peach: Local-first video metadata scraper and media manager.
fix: keep mobile sort controls on one line
Peach local maintenancebc51e31fffe0
diff --git a/docs/HANDOFF.md b/docs/HANDOFF.mdindex 92a1317c0..a15736d69 100644--- a/docs/HANDOFF.md+++ b/docs/HANDOFF.md@@ -187,7 +187,7 @@ Claude 的 `.claude/settings.json` 已配置 Stop、StopFailure、SessionEnd hoo- “已标记”是正向收藏入口,只包含 profile 的 `liked=1` 或至少记录过一次高潮的作品;不喜欢、看过和待删分别属于负反馈、观看状态和处置流程,不得混入。- 无限滚动同一时间只允许一个追加请求;先判断加载锁再递增 offset,避免快速触发时跳页。图片继续使用原生 `loading=lazy`。只有本地资源可使用真视频 hover;115/PikPak 等远端源必须使用本地接触印相。滚动、换页、隐藏页面或替换卡片 DOM 时,统一停止 hover 并释放 `src`。- 2026-08-15 实测:Prestige 显示 248 个总结果时首屏只构建 48 张卡片,点击“载入更多”后为 96;艺人索引 120 条约 311 ms,Prestige 第二页 48 条且跳过总数统计约 94 ms。具体耗时随 ledger 和磁盘状态变化,只把批量边界作为稳定契约。-- 0.5.5 起,标签筛选行与排序/换批行都常驻顶栏下方,不再按滚动方向隐藏;两行在原始位置保持透明,只在真正吸顶后加半透明黑色磨砂底与分隔线,分别占位,不能盖住卡片内容。+- 0.5.5 起,标签筛选行与排序/换批行都常驻顶栏下方,不再按滚动方向隐藏;两行在原始位置保持透明,只在真正吸顶后加半透明黑色磨砂底与分隔线,分别占位,不能盖住卡片内容。窄屏上的结果数量和全部排序按钮必须同处一条横向滚动带,文字不折行、按钮不压缩成竖排。- 0.6.1 起,首页每批 60 个普通作品中只插入 1 个自动 Mix 卡片,不额外请求 60 份队列,也不计入作品分页数。卡片复用本批已有种子,点击时才并行请求种子详情与一次 `/api/related`,队列上限 29 个,避免 N+1 和首屏批量构建。- Mix 使用 `/mix/{seed_id}/{item_id}`,刷新和前进/后退可恢复同一队列。桌面端播放器右侧显示可滚动列表,当前项着色;窄屏列表移到播放器下方。普通详情继续显示“接着看”,Mix 内不再重复渲染第二份相关推荐。- Mix 视觉证据来自用户于 2026-08-16 提供的 YouTube 截图 `codex-clipboard-8f6cbb25-399a-4f91-9c2a-a6972484ed50.png` 与 `codex-clipboard-baeb854e-3e27-43fb-9e6a-aa14830c248a.png`:普通流卡片有两层轻微上移的堆叠边、右下角 Mix 标识;打开后右侧是有当前项状态的滚动列表。Peach 有意保留自己的色彩 token、详情反馈区和本地元数据,不复制 YouTube 品牌、推荐文案或登录能力。diff --git a/tests/test_web_ui.py b/tests/test_web_ui.pyindex 74b93b105..66d7ea494 100644--- a/tests/test_web_ui.py+++ b/tests/test_web_ui.py@@ -163,9 +163,14 @@ class WebUiSourceTests(unittest.TestCase):self.assertIn("el.classList.toggle('is-stuck',stuck)", self.page)self.assertNotIn(".tagbar.tuck", self.page)self.assertNotIn("function onScrollFrame", self.page)- self.assertIn(":root{--tile:168px;--topH:52px;--sortH:96px}", self.page)- self.assertIn(".count{align-items:stretch;flex-direction:column", self.page)- self.assertIn(".count .sorts button{flex:0 0 auto", self.page)+ self.assertIn(":root{--tile:168px;--topH:52px;--sortH:60px}", self.page)++ def test_mobile_count_and_sort_controls_share_one_scrollable_row(self):+ self.assertIn(".count{align-items:center;flex-direction:row", self.page)+ self.assertIn("overflow-x:auto;overflow-y:hidden;scrollbar-width:none", self.page)+ self.assertIn(".count>span:first-child{line-height:36px;white-space:nowrap}", self.page)+ self.assertIn(".count .sorts{width:max-content;margin-left:0;flex:0 0 auto;overflow:visible}", self.page)+ self.assertIn(".count .sorts button{flex:0 0 auto;min-height:36px;white-space:nowrap}", self.page)def test_entity_collection_posters_and_titles_open_item_details(self):self.assertIn('class="cardopenhit" data-open', self.page)diff --git a/web/index.html b/web/index.htmlindex 19893fdbf..104def98d 100644--- a/web/index.html+++ b/web/index.html@@ -723,11 +723,13 @@ body.drawer-open .edge{opacity:0;pointer-events:none} /* 展开时窄栏让位.mixqueue{max-height:420px;border-left:0;border-top:1px solid var(--line-soft)}}@media (max-width:760px){.readout{display:none} .brand .sub{display:none}- :root{--tile:168px;--topH:52px;--sortH:96px}+ :root{--tile:168px;--topH:52px;--sortH:60px}.grid{gap:16px 8px}- .count{align-items:stretch;flex-direction:column;gap:7px;padding-block:8px}- .count>span:first-child{line-height:28px}- .count .sorts{width:100%;margin-left:0;flex:none}+ .count{align-items:center;flex-direction:row;gap:10px;padding-block:8px;+ overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-inline:contain}+ .count::-webkit-scrollbar{display:none}+ .count>span:first-child{line-height:36px;white-space:nowrap}+ .count .sorts{width:max-content;margin-left:0;flex:0 0 auto;overflow:visible}.count .sorts button{flex:0 0 auto;min-height:36px;white-space:nowrap}/* 顶栏在窄屏会被搜索框撑破 —— 搜索收成一个按钮,点了才展开 */.top{gap:4px;padding:0 8px;overflow:hidden}