perf(14-01): add CSS containment to app shell layout boundaries

- contain: layout style on .content-area to isolate main+queue from header/sidebar
- contain: strict on .main-panel for maximum layout isolation
- contain: layout style paint on .main-panel > * for paint containment per view
- contain: layout style paint on sidebar to isolate from main panel
- contain: layout style on .bottom-bar to isolate footer from content reflows
This commit is contained in:
2026-03-14 13:44:22 -04:00
parent a8b5274775
commit efa06f7edf
+5
View File
@@ -58,6 +58,7 @@ body div.sidebar {
grid-area: sidebar;
background-color: var(--yj-bg-surface, #212529);
overflow: hidden;
contain: layout style paint;
}
.bottom-bar {
@@ -67,6 +68,7 @@ body div.sidebar {
display: grid;
grid-template-columns: var(--now-playing-width, 200px) 1fr auto;
align-items: center;
contain: layout style;
#now-playing-info {
justify-self: start;
@@ -134,6 +136,7 @@ body div.sidebar {
grid-area: main-panel;
display: flex;
overflow: hidden;
contain: layout style;
}
.main-panel {
@@ -142,8 +145,10 @@ body div.sidebar {
padding: 0.25em;
background-color: var(--yj-bg-surface, #212529);
overflow: hidden;
contain: strict;
}
.main-panel > * {
height: 100%;
contain: layout style paint;
}