Skip to content

Commit

Permalink
update: sidebar tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung committed Nov 11, 2024
1 parent 2e339df commit c8d6b99
Show file tree
Hide file tree
Showing 25 changed files with 395 additions and 1,020 deletions.
14 changes: 7 additions & 7 deletions ee/tabby-ui/app/(dashboard)/components/main-content.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
'use client'

import { ScrollArea } from '@/components/ui/scroll-area'
import { SidebarInset } from '@/components/ui/sidebar'
import { BANNER_HEIGHT, useShowDemoBanner } from '@/components/demo-banner'
import { Header } from '@/components/header'
import { useShowLicenseBanner } from '@/components/license-banner'
import { SidebarInset } from '@/components/ui/sidebar'

export default function MainContent({
children
Expand All @@ -24,12 +25,11 @@ export default function MainContent({
return (
<>
{/* Wraps right hand side into ScrollArea, making scroll bar consistent across all browsers */}
<SidebarInset
className={'flex flex-1 flex-col transition-all overflow-y-auto'}
style={style}
>
<Header />
<div className="flex-1 p-4 lg:p-10">{children}</div>
<SidebarInset style={style}>
<ScrollArea>
<Header />
<div className="p-4 lg:p-10">{children}</div>
</ScrollArea>
</SidebarInset>
</>
)
Expand Down
Loading

0 comments on commit c8d6b99

Please sign in to comment.