fix: 增加图库吸顶区域与列表的间距

This commit is contained in:
GouJ
2026-09-04 11:49:26 +08:00
parent bd66f7e719
commit da95a3c29c
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -465,6 +465,7 @@ body {
z-index: 10;
background: var(--app-subtle);
margin-block: 10px 0;
padding-bottom: 12px;
}
.gallery-sticky-controls > .form-image-filter-region {
margin-block: 0;
+4
View File
@@ -152,6 +152,10 @@ describe('全站平面主题', () => {
)
expect(css).toMatch(/\.asset-impact-links\s*\{[^}]*width:\s*max-content;[^}]*white-space:\s*nowrap;/)
expect(css).toMatch(/\.gallery-sticky-controls > \.form-image-filter-region\s*\{[^}]*margin-block:\s*0;/)
// 列表前的间距属于吸顶容器内部,滚动时仍由不透明背景覆盖。
expect(css).toMatch(
/\.gallery-workspace-page \.gallery-sticky-controls\s*\{[^}]*margin-block:\s*10px 0;[^}]*padding-bottom:\s*12px;/
)
expect(css).toMatch(
/\.asset-impact-links\s*\{[^}]*align-items:\s*center;[^}]*min-height:\s*32px;[^}]*padding-block:\s*6px;/
)