Skip to content

Commit fa6cbce

Browse files
committed
feat(dashboard): sticky Recents label with a fade strip under it
- Drop the uppercase on the Recents label (plain "Recents"). - Make the label sticky to the top of the scroll, and add a sticky gradient strip under it (background -> transparent) so rows dissolve into the bg as they scroll up beneath the label.
1 parent ad1051c commit fa6cbce

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

packages/framework-dashboard/components/RunHistory.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,14 @@ export function RunHistory({
194194
<SidebarContent className="overflow-hidden">
195195
<ScrollArea className="min-h-0 flex-1">
196196
{/* pr-3 keeps the rows (and the active card) clear of the overlaid scrollbar (w-2.5). */}
197-
<SidebarGroup className="pt-1 pr-3">
198-
{/* Recents label sits under the launcher, over the run list (not a page-wide header). */}
197+
<SidebarGroup className="pt-3 pr-3">
198+
{/* The label sticks to the top of the scroll; the gradient strip under it (also sticky)
199+
fades the rows into the background as they scroll up beneath the label. */}
199200
{hasRecents && (
200-
<SidebarGroupLabel className="mt-2 font-normal uppercase tracking-wide text-muted-foreground">Recents</SidebarGroupLabel>
201+
<div className="sticky top-0 z-10">
202+
<SidebarGroupLabel className="bg-background font-normal tracking-wide text-muted-foreground">Recents</SidebarGroupLabel>
203+
<div aria-hidden className="pointer-events-none h-4 bg-gradient-to-b from-background to-transparent" />
204+
</div>
201205
)}
202206
<SidebarGroupContent>
203207
<SidebarMenu className="gap-0.5">

0 commit comments

Comments
 (0)