fix(settings): switch to horizontal tab bar layout (single column, full width content)

This commit is contained in:
Hibryda 2026-03-17 06:09:00 +01:00
parent 1670ea4482
commit 614ae79f8e

View file

@ -246,31 +246,30 @@
.settings-body { .settings-body {
display: flex; display: flex;
flex-direction: column;
flex: 1; flex: 1;
overflow: hidden; overflow: hidden;
} }
.settings-sidebar { .settings-sidebar {
display: flex; display: flex;
flex-direction: column; flex-wrap: wrap;
width: 10rem; gap: 0.125rem;
flex-shrink: 0; padding: 0.375rem 0.5rem;
padding: 0.5rem 0;
background: var(--ctp-mantle); background: var(--ctp-mantle);
border-right: 1px solid var(--ctp-surface0); border-bottom: 1px solid var(--ctp-surface0);
overflow-y: auto; flex-shrink: 0;
} }
.sidebar-item { .sidebar-item {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.25rem;
padding: 0.5rem 0.75rem; padding: 0.3125rem 0.5rem;
background: none; background: none;
border: none; border: none;
border-radius: 0.25rem;
color: var(--ctp-subtext0); color: var(--ctp-subtext0);
cursor: pointer; cursor: pointer;
font-size: 0.8125rem; font-size: 0.75rem;
text-align: left;
border-left: 2px solid transparent;
transition: background 0.1s, color 0.1s; transition: background 0.1s, color 0.1s;
} }
.sidebar-item:hover { .sidebar-item:hover {
@ -279,10 +278,9 @@
} }
.sidebar-item.active { .sidebar-item.active {
color: var(--ctp-blue); color: var(--ctp-blue);
border-left-color: var(--ctp-blue); background: color-mix(in srgb, var(--ctp-blue) 12%, transparent);
background: color-mix(in srgb, var(--ctp-blue) 8%, transparent);
} }
.sidebar-icon { font-size: 1rem; } .sidebar-icon { font-size: 0.875rem; }
.sidebar-label { font-weight: 500; } .sidebar-label { font-weight: 500; }
.settings-content { .settings-content {