mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-20 21:59:07 +02:00
fix auto size detection
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user