File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import clsx from 'clsx'
12import { Linux } from '@/app/components/controls/linux'
23import { Windows } from '@/app/components/controls/windows'
34import { NavigationButtons } from '@/app/components/header/navigation-buttons'
@@ -7,12 +8,18 @@ import { SettingsButton } from '@/app/components/settings/header-button'
78import { useAppWindow } from '@/app/hooks/use-app-window'
89import { isLinux , isMac , isWindows } from '@/utils/osType'
910import { tauriDragRegion } from '@/utils/tauriDragRegion'
11+ import { isTauri } from '@/utils/tauriTools'
1012
1113export function Header ( ) {
1214 const { isFullscreen } = useAppWindow ( )
1315
1416 return (
15- < header className = "w-full grid grid-cols-header pl-4 h-header fixed top-0 right-0 left-0 z-20 bg-background border-b" >
17+ < header
18+ className = { clsx (
19+ 'w-full grid grid-cols-header h-header fixed top-0 right-0 left-0 z-20 bg-background border-b' ,
20+ isTauri ( ) ? 'pl-4' : 'px-4' ,
21+ ) }
22+ >
1623 < div { ...tauriDragRegion } className = "flex items-center" >
1724 { isMac && ! isFullscreen && < div className = "w-[70px]" /> }
1825 < NavigationButtons />
You can’t perform that action at this time.
0 commit comments