From a0e580878e6ca586a4bd1c13d4b36236e72268af Mon Sep 17 00:00:00 2001 From: Dwindi Ramadhana Date: Wed, 7 Jan 2026 23:40:03 +0700 Subject: [PATCH] fix(admin): mount popover portal inside app container Instead of mounting to body (which breaks scoped styles), we now mount the popover portal to #woonoow-admin-app. This ensures dropdowns inherit the correct CSS variables and styling. --- admin-spa/src/components/ui/popover.tsx | 2 +- admin-spa/src/index.css | 67 ------------------- .../src/routes/Orders/partials/OrderForm.tsx | 1 - 3 files changed, 1 insertion(+), 69 deletions(-) diff --git a/admin-spa/src/components/ui/popover.tsx b/admin-spa/src/components/ui/popover.tsx index fdcb511..30742b1 100644 --- a/admin-spa/src/components/ui/popover.tsx +++ b/admin-spa/src/components/ui/popover.tsx @@ -13,7 +13,7 @@ const PopoverContent = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, align = "center", sideOffset = 4, ...props }, ref) => ( - + ) : (