Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix: prevent sort buttons from shrinking

Peach local maintenancedef759778d83
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index 66d7ea494..cf05e2049 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -170,7 +170,8 @@ class WebUiSourceTests(unittest.TestCase):
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)
+ self.assertIn("flex:0 0 auto;white-space:nowrap", self.page)
+ self.assertIn(".count .sorts button{min-height:36px}", 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.html
index 104def98d..48309928d 100644
--- a/web/index.html
+++ b/web/index.html
@@ -293,7 +293,8 @@ main{position:relative;z-index:1;padding:14px 16px 90px}
.count .sorts{display:flex;gap:5px;margin-left:auto;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.count .sorts::-webkit-scrollbar{display:none}
.count .sorts button{padding:5px 11px;border:1px solid var(--line);border-radius:7px;
- background:transparent;cursor:pointer;font-size:12px;color:var(--ink-2)}
+ background:transparent;cursor:pointer;font-size:12px;color:var(--ink-2);
+ flex:0 0 auto;white-space:nowrap}
.count .sorts button:hover{border-color:var(--tungsten);color:var(--ink)}
.count .sorts button[aria-pressed="true"]{background:var(--tungsten-soft);
border-color:var(--tungsten);color:var(--tungsten)}
@@ -730,7 +731,7 @@ body.drawer-open .edge{opacity:0;pointer-events:none} /* 展开时窄栏让位
.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}
+ .count .sorts button{min-height:36px}
/* 顶栏在窄屏会被搜索框撑破 —— 搜索收成一个按钮,点了才展开 */
.top{gap:4px;padding:0 8px;overflow:hidden}
.top:has(.search.open){overflow:visible}