style: 统一形态网格图片区尺寸
This commit is contained in:
@@ -168,6 +168,9 @@ describe('全站平面主题', () => {
|
||||
|
||||
it('瀑布流按行填充自适应列宽,卡片与图片均保留实际高度', () => {
|
||||
const css = readAllStyles()
|
||||
expect(css).toMatch(
|
||||
/\.form-image-grid:not\(\.form-image-masonry\) \.asset-image\s*\{[^}]*aspect-ratio:\s*1 \/ 1;/
|
||||
)
|
||||
expect(css).toMatch(
|
||||
/\.gallery-workspace-page \.form-image-masonry\s*\{[^}]*display:\s*grid;[^}]*grid-template-columns:\s*repeat\(auto-fill, minmax\(min\(260px, 100%\), 1fr\)\);[^}]*grid-auto-flow:\s*row dense;[^}]*grid-auto-rows:\s*1px;/
|
||||
)
|
||||
@@ -298,4 +301,3 @@ describe('全站平面主题', () => {
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user