Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(follow): span image details across masonry

longmeidaobfe5fbaa72de
diff --git a/tests/test_follow_web.py b/tests/test_follow_web.py
index f7536dac4..b1f4b69d3 100644
--- a/tests/test_follow_web.py
+++ b/tests/test_follow_web.py
@@ -2188,6 +2188,8 @@ class FollowWebSourceTests(unittest.TestCase):
)
self.assertPageContains("followMediaView==='images'?' followphotowall':''")
self.assertPageContains(".followlist.followphotowall{display:block;column-count:5")
+ self.assertPageContains(".followlist.followphotowall>.stage{column-span:all}",
+ "图片瀑布流里的详情必须跨栏,否则媒体列会被侧栏挤成 0px")
self.assertPageContains(".followitem.imagecard .followvisual .pic>img{position:relative")
def test_external_file_pages_do_not_default_to_video_and_paging_actions_share_one_row(self):
diff --git a/web/app.css b/web/app.css
index bc59a122c..0ba790a66 100644
--- a/web/app.css
+++ b/web/app.css
@@ -1798,6 +1798,9 @@ body.drawer-open .edge{opacity:0;pointer-events:none} /* 展开时窄栏让位
.fauthorhead .ficon{margin-right:2px}
.followlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--tile),1fr));gap:16px 8px}
.followlist.followphotowall{display:block;column-count:5;column-gap:10px}
+/* 图片瀑布流使用多栏布局;详情舞台如果仍占普通栏位,350px 侧栏会把媒体列挤成
+ 0px。跨越全部栏位既保留就近展开顺序,也让图片和信息栏拿到列表完整宽度。 */
+.followlist.followphotowall>.stage{column-span:all}
@media (max-width:1400px){.followlist.followphotowall{column-count:4}}
@media (max-width:1000px){.followlist.followphotowall{column-count:3}}
.followitem{min-width:0}.followitem.collection{padding-top:7px}