mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Fixed sidebar scaling
This commit is contained in:
1 parent
08884ca6bd
commit
84947bb0bb
1 file changed
+12
-4
@@ -511,7 +511,7 @@ export function Sidebar({
|
||||
<button
|
||||
onClick={switchLibrary}
|
||||
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
|
||||
aria-hidden
|
||||
@@ -535,7 +535,14 @@ export function Sidebar({
|
||||
</span>
|
||||
</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
|
||||
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 ${
|
||||
@@ -551,7 +558,7 @@ export function Sidebar({
|
||||
</button>
|
||||
</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">
|
||||
Playlists
|
||||
</span>
|
||||
@@ -592,10 +599,11 @@ export function Sidebar({
|
||||
onError={onError}
|
||||
onImport={onImport}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<button
|
||||
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} />
|
||||
Collection Version History
|
||||
|
||||
Reference in new issue
Block a user