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 (