fix: balance settings navigation highlights
The settings category list reserved scrollbar space only on its right edge, so selected rows appeared visibly offset. The navigation now reserves symmetric space and uses wider desktop and medium-width columns while preserving the horizontal narrow-window layout. Release note: 修复设置中心左侧分类选中高亮左右不平衡的问题,并适当加宽分类导航以改善标题和说明的可读性。
This commit is contained in:
@@ -209,7 +209,13 @@ describe('WorkspacePrimitives', () => {
|
||||
|
||||
it('keeps full-page settings navigation readable and content fluid', () => {
|
||||
expect(stylesheet).toMatch(
|
||||
/\.settings-page \.settings-panel__body\s*\{[^}]*grid-template-columns:\s*190px minmax\(0,\s*1fr\);/u
|
||||
/\.settings-page \.settings-panel__body\s*\{[^}]*grid-template-columns:\s*220px minmax\(0,\s*1fr\);/u
|
||||
)
|
||||
expect(stylesheet).toMatch(
|
||||
/@media \(max-width: 1020px\)\s*\{[\s\S]*?\.settings-page \.settings-panel__body\s*\{[^}]*grid-template-columns:\s*196px minmax\(0,\s*1fr\);/u
|
||||
)
|
||||
expect(stylesheet).toMatch(
|
||||
/\.settings-page \.settings-tabs\s*\{[^}]*scrollbar-gutter:\s*stable both-edges;/u
|
||||
)
|
||||
expect(stylesheet).toMatch(
|
||||
/\.settings-page \.settings-panel__content\s*\{[^}]*width:\s*min\(100%,\s*var\(--content-standard\)\);/u
|
||||
|
||||
@@ -5016,7 +5016,7 @@ button > svg {
|
||||
padding: 24px 32px 32px;
|
||||
overflow: hidden;
|
||||
align-items: stretch;
|
||||
grid-template-columns: 190px minmax(0, 1fr);
|
||||
grid-template-columns: 220px minmax(0, 1fr);
|
||||
justify-content: start;
|
||||
gap: 28px;
|
||||
}
|
||||
@@ -5049,7 +5049,7 @@ button > svg {
|
||||
align-self: stretch;
|
||||
flex-direction: column;
|
||||
grid-template-columns: none;
|
||||
scrollbar-gutter: stable;
|
||||
scrollbar-gutter: stable both-edges;
|
||||
}
|
||||
|
||||
.settings-page .settings-panel__content {
|
||||
@@ -11108,7 +11108,7 @@ details.settings-section > :not(summary) + :not(summary) {
|
||||
padding: 20px;
|
||||
overflow: hidden;
|
||||
align-items: stretch;
|
||||
grid-template-columns: 176px minmax(0, 1fr);
|
||||
grid-template-columns: 196px minmax(0, 1fr);
|
||||
justify-content: stretch;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user