Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

fix: stop the text-link underline from cutting across avatar tiles

Peach local maintenance3928e1d90789
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index 1e98ded13..8a3990480 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -68,6 +68,13 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageLacks("const performerName=performerRef?.name")
self.assertPageLacks(".identityrow", "旧的逐行布局必须整段删掉")
+ def test_avatar_tiles_do_not_inherit_the_text_link_underline(self):
+ # 头像格子是 flex 容器,`.entitylink:hover` 的下划线会横穿整行,
+ # 连上面的头像都被划上;它们已有描边和提亮两种 hover 反馈。
+ self.assertPageContains(".idcell:hover,.mav:hover{text-decoration:none}")
+ # 行内文字身份仍然要保留下划线,别把 entitylink 整条规则删掉。
+ self.assertPageContains(".entitylink:hover{text-decoration:underline}")
+
def test_every_identity_cell_can_carry_its_own_portrait(self):
self.assertPageContains('item.id?`<img src="/entity-image?kind=performer&id=${item.id}"')
self.assertPageContains('<img src="/logo?studio=${encodeURIComponent(item.name)}"')
diff --git a/web/app.css b/web/app.css
index c0634056e..eb5bf7bf6 100644
--- a/web/app.css
+++ b/web/app.css
@@ -286,6 +286,10 @@ button,input,textarea{font:inherit;color:inherit}
overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-2)}
.idcell:hover .idface{box-shadow:0 0 0 2px var(--tungsten)}
.idcell:hover .idname{color:var(--ink)}
+/* 下划线只适合行内文字链接。头像格子是 flex 容器,`.entitylink:hover` 的下划线会
+ 横穿整行,连上面的头像都被划上;它们本来就有自己的 hover 反馈——face 描边加
+ 名字提亮,卡片头像是描边——不需要再叠一条线。 */
+.idcell:hover,.mav:hover{text-decoration:none}
.castmore{align-self:center;height:46px;padding:0 12px;border:1px dashed var(--overlay-10);
border-radius:12px;background:transparent;color:var(--tungsten);font-size:12px;cursor:pointer}
.castmore:hover{background:var(--hover)}