mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-29 10:26:23 +02:00
Made headers and toolbars sticky
This commit is contained in:
parent
df93066fe0
commit
6d70282be6
5 changed files with 28 additions and 16 deletions
|
|
@ -263,8 +263,8 @@ function KnowledgeSection({
|
|||
return (
|
||||
<ContextMenu>
|
||||
<ContextMenuTrigger asChild>
|
||||
<SidebarGroup className="flex-1 flex flex-col">
|
||||
<div className="flex items-center justify-center gap-1 py-1">
|
||||
<SidebarGroup className="flex-1 flex flex-col overflow-hidden">
|
||||
<div className="flex items-center justify-center gap-1 py-1 sticky top-0 z-10 bg-sidebar border-b border-sidebar-border">
|
||||
{quickActions.map((action) => (
|
||||
<Tooltip key={action.label}>
|
||||
<TooltipTrigger asChild>
|
||||
|
|
@ -296,7 +296,7 @@ function KnowledgeSection({
|
|||
</TooltipContent>
|
||||
</Tooltip>
|
||||
</div>
|
||||
<SidebarGroupContent className="flex-1">
|
||||
<SidebarGroupContent className="flex-1 overflow-y-auto">
|
||||
<SidebarMenu>
|
||||
{tree.map((item, index) => (
|
||||
<Tree
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue