From c37f24d1b0439a9a15aa4c3f42aee3331e920bc2 Mon Sep 17 00:00:00 2001 From: Eduard Gert Date: Mon, 15 Jun 2026 16:00:49 +0200 Subject: [PATCH] adjust vertical offset on macos --- .../frontend/src/components/empty-state/EmptyState.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/client/ui/frontend/src/components/empty-state/EmptyState.tsx b/client/ui/frontend/src/components/empty-state/EmptyState.tsx index 774ed8e90..4384b0c18 100644 --- a/client/ui/frontend/src/components/empty-state/EmptyState.tsx +++ b/client/ui/frontend/src/components/empty-state/EmptyState.tsx @@ -2,10 +2,11 @@ import { ComponentType } from "react"; import { LucideProps } from "lucide-react"; import { cn } from "@/lib/cn"; import { SquareIcon } from "@/components/SquareIcon"; +import { isMacOS } from "@/lib/platform"; // Knob to shift the centered main-window content up/down together. -export const CONTENT_VERTICAL_OFFSET = "-1.4rem"; -export const contentTop = (base: string) => `calc(${base} + ${CONTENT_VERTICAL_OFFSET})`; +export const contentVerticalOffset = (): string => (isMacOS() ? "0rem" : "-1.4rem"); +export const contentTop = (base: string) => `calc(${base} + ${contentVerticalOffset()})`; type Props = { icon: ComponentType; @@ -18,9 +19,7 @@ export const EmptyState = ({ icon, title, description, className }: Props) => { return (