From 752461343930b2806061bb23fbfb161534ba3248 Mon Sep 17 00:00:00 2001 From: xintaofei Date: Wed, 15 Apr 2026 20:53:04 +0800 Subject: [PATCH] fix(ui): sharpen dialog rendering with flex centering and stronger ring Replace translate-based centering with a grid place-items-center wrapper to eliminate half-pixel subpixel blur on non-retina displays. Strengthen the content border by switching from ring-foreground/5 to ring-border and adding shadow-2xl for a clearer visual boundary. --- src/components/ui/alert-dialog.tsx | 20 +++++++++++--------- src/components/ui/dialog.tsx | 22 ++++++++++++---------- 2 files changed, 23 insertions(+), 19 deletions(-) diff --git a/src/components/ui/alert-dialog.tsx b/src/components/ui/alert-dialog.tsx index dc40031..fc673d9 100644 --- a/src/components/ui/alert-dialog.tsx +++ b/src/components/ui/alert-dialog.tsx @@ -54,15 +54,17 @@ function AlertDialogContent({ return ( - +
+ +
) } diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx index 7022637..9ca8ff6 100644 --- a/src/components/ui/dialog.tsx +++ b/src/components/ui/dialog.tsx @@ -53,16 +53,18 @@ function DialogContent({ return ( - - {children} - +
+ + {children} + +
) }