mirror of
https://github.com/ChiChou/entdb.git
synced 2026-12-05 11:13:40 +01:00
fix(bin): keep version history below the sticky header
The sidebar stuck 1rem from the top, so it scrolled up under the ~4rem site header. It now sticks at top-20 like the keys page's panel and scrolls on its own when the history is taller than the window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
39e4251249
commit
36d9668b88
1 file changed
+3
-1
@@ -134,7 +134,9 @@ export default function BinaryDetail() {
|
||||
{/* Version history sidebar - on right */}
|
||||
{hasVersionHistory && (
|
||||
<aside className="lg:w-64 shrink-0 order-2 lg:order-last">
|
||||
<div className="lg:sticky lg:top-4">
|
||||
{/* Below the sticky header (as on the keys page), scrolling on
|
||||
its own when the history is taller than the window. */}
|
||||
<div className="lg:sticky lg:top-20 lg:max-h-[calc(100vh-6rem)] lg:overflow-y-auto">
|
||||
<h3 className="text-sm font-semibold mb-3 text-muted-foreground">
|
||||
Version History ({availableHistory.length})
|
||||
</h3>
|
||||
|
||||
Reference in new issue
Block a user