style(v3): content-driven sidebar width and remaining px-to-rem conversions

Sidebar panel now uses width: max-content with per-tab min-width (22em)
instead of fixed 28em. Changed overflow: hidden to overflow-y: auto on
panel + panel-content so content drives parent width. Converted remaining
px values in SettingsTab, DocsTab to rem/em per rule 18.
This commit is contained in:
Hibryda 2026-03-08 01:13:43 +01:00
parent 3ecc4f02d1
commit 97860c3db1
4 changed files with 13 additions and 9 deletions

View file

@ -203,13 +203,14 @@
}
.sidebar-panel {
width: 28em;
width: max-content;
min-width: 16em;
max-width: 50%;
display: flex;
flex-direction: column;
background: var(--ctp-base);
border-right: 1px solid var(--ctp-surface1);
overflow: hidden;
overflow-y: auto;
flex-shrink: 0;
}
@ -249,7 +250,7 @@
.panel-content {
flex: 1;
overflow: hidden;
overflow-y: auto;
}
.workspace {

View file

@ -10,5 +10,6 @@
.context-tab {
height: 100%;
overflow: hidden;
min-width: 22em;
}
</style>

View file

@ -80,22 +80,23 @@
display: flex;
height: 100%;
overflow: hidden;
min-width: 22em;
}
.file-picker {
width: 220px;
width: 14em;
flex-shrink: 0;
background: var(--ctp-mantle);
border-right: 1px solid var(--ctp-surface0);
overflow-y: auto;
padding: 8px 0;
padding: 0.5rem 0;
}
.picker-title {
font-size: 0.75rem;
font-weight: 600;
color: var(--ctp-subtext0);
padding: 4px 12px 8px;
padding: 0.25rem 0.75rem 0.5rem;
margin: 0;
text-transform: uppercase;
letter-spacing: 0.04em;
@ -110,7 +111,7 @@
.file-btn {
display: block;
width: 100%;
padding: 5px 12px;
padding: 0.3rem 0.75rem;
background: transparent;
border: none;
color: var(--ctp-subtext0);
@ -150,7 +151,7 @@
justify-content: center;
color: var(--ctp-overlay0);
font-size: 0.85rem;
padding: 20px;
padding: 1.25rem;
}
.no-selection {

View file

@ -478,9 +478,10 @@
<style>
.settings-tab {
padding: 12px 16px;
padding: 0.75rem 1rem;
overflow-y: auto;
height: 100%;
min-width: 22em;
}
h2 {