Skip to content

Commit f264c23

Browse files
authored
Merge pull request #173 from victoralvesf/fix-header-spacing
fix: update header spacing for web version
2 parents d56d348 + 4f3d01f commit f264c23

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/app/layout/header.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import clsx from 'clsx'
12
import { Linux } from '@/app/components/controls/linux'
23
import { Windows } from '@/app/components/controls/windows'
34
import { NavigationButtons } from '@/app/components/header/navigation-buttons'
@@ -7,12 +8,18 @@ import { SettingsButton } from '@/app/components/settings/header-button'
78
import { useAppWindow } from '@/app/hooks/use-app-window'
89
import { isLinux, isMac, isWindows } from '@/utils/osType'
910
import { tauriDragRegion } from '@/utils/tauriDragRegion'
11+
import { isTauri } from '@/utils/tauriTools'
1012

1113
export 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 />

0 commit comments

Comments
 (0)