Peach: Local-first video metadata scraper and media manager.
fix(web): 索引页容器不再横向裁剪,筛选玻璃左右两侧的投影洒得出来
longmeidao1120c58e5254
diff --git a/frontend/e2e/design.test.ts b/frontend/e2e/design.test.tsindex f844c8626..650d3d034 100644--- a/frontend/e2e/design.test.ts+++ b/frontend/e2e/design.test.ts@@ -3481,6 +3481,25 @@ describe('设计决定', () => {}});+ it('索引页容器不横向裁剪:筛选玻璃左右两侧的影洒得出来,页面也不横向溢出', { timeout: 60_000 }, async () => {+ const opened = await openIndexPage(browser, '/tags');+ try {+ const page = opened.page;+ const clip = await page.evaluate(() => {+ const index = document.querySelector('#index')!;+ return {+ overflow: getComputedStyle(index).overflowX,+ spill: document.documentElement.scrollWidth - document.documentElement.clientWidth,+ };+ });+ assert.equal(clip.overflow, 'visible', '#index 横向裁剪,玻璃左右两侧的影被切成直边');+ assert.equal(clip.spill, 0, '不裁剪后页面被撑出横向滚动');+ assert.deepEqual(opened.problems, []);+ } finally {+ await opened.close();+ }+ });+it('标签页的筛选玻璃吸到顶栏下沿时影换成抬起来那一档,上沿垫一条页面底色的遮带', { timeout: 60_000 }, async () => {const opened = await openIndexPage(browser, '/tags');try {diff --git a/tests/test_source_assertion_ratchet.py b/tests/test_source_assertion_ratchet.pyindex a1eee4aaf..f09282bfa 100644--- a/tests/test_source_assertion_ratchet.py+++ b/tests/test_source_assertion_ratchet.py@@ -53,7 +53,7 @@ BASELINE: dict[str, int] = {"test_web_e2e.py": 2,"test_web_js.py": 1,"test_web_settings.py": 8,- "test_web_ui.py": 4070,+ "test_web_ui.py": 4069,"test_windows_update.py": 3,}diff --git a/tests/test_web_ui.py b/tests/test_web_ui.pyindex b520fe340..cb59cc7c9 100644--- a/tests/test_web_ui.py+++ b/tests/test_web_ui.py@@ -6497,7 +6497,6 @@ class WebUiSourceTests(unittest.TestCase):'<div class="relatedpeople">${related}</div></div>')self.assertPageLacks("entityfootlabel")self.assertPageContains('class="entitytagbar" aria-label="媒体与标签"')- self.assertPageContains("body.entity-open .index{overflow-x:visible}")self.assertNotIn("关联艺人", profile)self.assertNotIn("相关标签", profile)# 资料页只渲染可核对的身份、计数与链接,没有散文简介块,样式表里也不该diff --git a/web/css/06-index.css b/web/css/06-index.cssindex 806ee30d8..658506696 100644--- a/web/css/06-index.css+++ b/web/css/06-index.css@@ -1,8 +1,8 @@/* 索引页整页在 React(`frontend/src/react/index/`)。这里留下的是壳铺的那张骨架(页头、- 头像格、标签行与标签云的占位)和资料页名册共用的那一格人。 */-.index{padding:4px 0 20px;min-width:0;max-width:100%;overflow-x:clip}-/* 实体吸顶栏用负边距把分隔线铺到 main 左右边缘;默认的横向裁剪会把这 16 px 截掉。 */-body.entity-open .index{overflow-x:visible}+ 头像格、标签行与标签云的占位)和资料页名册共用的那一格人。+ 不裁横向溢出:筛选玻璃的三层投影要往左右各洒出几十像素,资料页吸顶栏也用负边距把+ 分隔线铺到 main 左右边缘;横滚的行各自 `overflow-x:auto`,页面本身不会被撑出横向滚动。 */+.index{padding:4px 0 20px;min-width:0;max-width:100%}.index .ihead{display:flex;align-items:center;gap:12px;margin-bottom:20px}.index .ihead h2{margin:0}.indexheading{display:inline-flex;align-items:center}