File tree Expand file tree Collapse file tree
packages/ui-components/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { BlockIcon } from '../../components/block-icon/block-icon';
1010import { TooltipWrapper } from '../../components/tooltip-wrapper' ;
1111import { useTypingAnimation } from '../../hooks/use-typing-animation' ;
1212import { cn } from '../../lib/cn' ;
13+ import { TOP_BAR_HEIGHT } from '../../lib/constants' ;
1314import { Button } from '../../ui/button' ;
1415import { Popover , PopoverContent , PopoverTrigger } from '../../ui/popover' ;
1516
@@ -64,8 +65,9 @@ const AssistantTopBar = ({
6465 return (
6566 < div
6667 className = { cn (
67- 'flex flex-col px-4 py-2 gap-1 flex-shrink-0 text-md dark:text-primary font-bold border-b border-gray-200' ,
68+ 'flex flex-col px-4 py-2 gap-1 flex-shrink-0 text-md dark:text-primary font-bold border-b border-gray-200 justify-center ' ,
6869 ) }
70+ style = { { minHeight : `${ TOP_BAR_HEIGHT } px` } }
6971 >
7072 < div className = "flex justify-between items-center gap-2" >
7173 < div className = "flex items-center gap-2 flex-1 min-w-0" >
Original file line number Diff line number Diff line change 11import { cn } from '../../lib/cn' ;
2+ import { TOP_BAR_HEIGHT } from '../../lib/constants' ;
23
34const PageHeader = ( {
45 title,
@@ -11,9 +12,10 @@ const PageHeader = ({
1112} ) => (
1213 < div
1314 className = { cn (
14- 'flex items-center justify-between border-b w-full bg-background h-[61px] flex-shrink-0' ,
15+ 'flex items-center justify-between border-b w-full bg-background flex-shrink-0' ,
1516 className ,
1617 ) }
18+ style = { { height : `${ TOP_BAR_HEIGHT } px` } }
1719 >
1820 < h1 className = "text-2xl pl-7" > { title } </ h1 >
1921 { children }
Original file line number Diff line number Diff line change 11import { Link } from 'react-router-dom' ;
22import { cn } from '../../lib/cn' ;
3+ import { TOP_BAR_HEIGHT } from '../../lib/constants' ;
34import { Tooltip , TooltipTrigger } from '../../ui/tooltip' ;
45
56const SideMenuHeader = ( {
@@ -13,9 +14,10 @@ const SideMenuHeader = ({
1314} ) => (
1415 < div
1516 className = { cn (
16- 'w-full flex items-center px-6 py-[18px] h-[60px] flex-shrink-0' ,
17+ 'w-full flex items-center px-6 py-[18px] flex-shrink-0 border-b ' ,
1718 className ,
1819 ) }
20+ style = { { height : `${ TOP_BAR_HEIGHT } px` } }
1921 >
2022 < Link to = "/" >
2123 < Tooltip >
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const SideMenuNavigation = ({
1010 links,
1111 isMinimized,
1212} : SideMenuNavigationProps ) => (
13- < nav className = "flex flex-col w-full gap-1 py-3 px-3 border-t " >
13+ < nav className = "flex flex-col w-full gap-1 py-3 px-3" >
1414 { links . map ( ( link , index ) => (
1515 < MenuNavigationItem
1616 to = { link . to }
Original file line number Diff line number Diff line change @@ -37,3 +37,5 @@ export const PRIMITIVE_STEP_METADATA = {
3737export const COPY_PASTE_TOAST_DURATION = 2000 ;
3838
3939export const AI_CHAT_SCROLL_DELAY = 200 ;
40+
41+ export const TOP_BAR_HEIGHT = 60 ;
You can’t perform that action at this time.
0 commit comments