fix auto size detection

This commit is contained in:
Eduard Gert
2026-05-29 17:21:45 +02:00
parent 558769e671
commit b0d8ac6489
6 changed files with 53 additions and 13 deletions
@@ -1,6 +1,5 @@
import { ReactNode, forwardRef } from "react";
import {cn} from "@/lib/cn.ts";
import {isMacOS} from "@/lib/platform.ts";
// ConfirmDialog is the shared layout wrapper used by dialog-style window
// surfaces (SessionExpired, SessionAboutToExpire, …). Purely a layout
@@ -20,12 +19,12 @@ export const ConfirmDialog = forwardRef<HTMLDivElement, ConfirmDialogProps>(
return (
<div
className={
"wails-draggable select-none flex flex-col items-center justify-center"
"wails-draggable select-none flex flex-col items-center"
}
>
<div
ref={ref}
className={cn("flex flex-col items-center gap-5 p-8 text-center", !isMacOS() && "pt-4")}
className={cn("flex flex-col items-center gap-5 text-center px-8 py-6")}
>
{children}
</div>