优化设置面板桌面端边距

This commit is contained in:
xuans committed 2026-10-15 17:42:32 +08:00
1 parent 20bded1689
commit 541c2fe906
2 files changed
+5 -1

No files matched your search

+2
View File
@@ -140,6 +140,8 @@ test('配置管理只在真实移动端将内部导航移到内容顶部', () =>
const desktopStart = config.indexOf('@media (min-width: 769px)', containerStart)
const containerRule = config.slice(containerStart, desktopStart)
assert.match(header, /min\(1180px, calc\(100vw - 32px\)\)/)
assert.match(read('HomeHeader/HomeHeader.css'), /\.settings-drawer\.el-drawer[\s\S]*right: 16px[\s\S]*border-radius: 18px;/)
assert.match(read('HomeHeader/HomeHeader.css'), /@media \(max-width: 768px\)[\s\S]*\.settings-drawer\.el-drawer[\s\S]*right: 0;/)
assert.match(config, /grid-template-areas: "main submenu"/)
assert.match(config, /@media \(min-width: 769px\)[\s\S]*grid-template-columns: minmax\(0, 1fr\)/)
assert.match(config, /@media \(max-width: 768px\)[\s\S]*"submenu"[\s\S]*"main"/)