Fixed sidebar scaling

This commit is contained in:
patben8 committed 2026-09-26 17:55:23 +02:00
1 parent 08884ca6bd
commit 84947bb0bb
1 file changed
+12 -4
+12 -4
View File
@@ -511,7 +511,7 @@ export function Sidebar({
<button <button
onClick={switchLibrary} onClick={switchLibrary}
title={library ? `${library.path} — click to open a different library` : undefined} title={library ? `${library.path} — click to open a different library` : undefined}
className="btn-glass group m-2.5 mb-0 flex items-center gap-2.5 rounded-[14px] px-2.5 py-2 text-left" className="btn-glass group m-2.5 mb-0 flex shrink-0 items-center gap-2.5 rounded-[14px] px-2.5 py-2 text-left"
> >
<span <span
aria-hidden aria-hidden
@@ -535,7 +535,14 @@ export function Sidebar({
</span> </span>
</button> </button>
<div className="px-2 pt-3"> {/* Everything between the library header and the footer scrolls as one
when the window is too short for it. Each section keeps its own
minimum (the playlists 6 rows, Devices 7) and inner scroll, so on a
tall window nothing changes; on a short one the sections stop
shrinking at those minimums and this takes over, instead of the
sidebar's contents running off the bottom of its panel. */}
<div className="flex min-h-0 flex-1 flex-col overflow-y-auto">
<div className="shrink-0 px-2 pt-3">
<button <button
onClick={() => onSelect({ kind: 'all' })} onClick={() => onSelect({ kind: 'all' })}
className={`flex w-full items-center gap-2 rounded-[10px] px-2 py-1.5 text-left text-sm transition-colors ${ className={`flex w-full items-center gap-2 rounded-[10px] px-2 py-1.5 text-left text-sm transition-colors ${
@@ -551,7 +558,7 @@ export function Sidebar({
</button> </button>
</div> </div>
<div className="mt-3 px-4"> <div className="mt-3 shrink-0 px-4">
<span className="text-[11px] font-semibold uppercase tracking-wider text-faint"> <span className="text-[11px] font-semibold uppercase tracking-wider text-faint">
Playlists Playlists
</span> </span>
@@ -592,10 +599,11 @@ export function Sidebar({
onError={onError} onError={onError}
onImport={onImport} onImport={onImport}
/> />
</div>
<button <button
onClick={onOpenHistory} onClick={onOpenHistory}
className="flex items-center justify-center gap-2 border-t border-line px-4 py-2 text-center text-xs text-muted hover:bg-ink-800 hover:text-text" className="flex shrink-0 items-center justify-center gap-2 border-t border-line px-4 py-2 text-center text-xs text-muted hover:bg-ink-800 hover:text-text"
> >
<Icon name="history" size={13} /> <Icon name="history" size={13} />
Collection Version History Collection Version History