refactor(webui): improve visual consistency (#5249)

This commit is contained in:
chengyongru authored and GitHub committed 2026-08-05 13:24:45 +08:00
1 parent a54d5d14cb
commit 9098ffd38f
33 files changed
+578 -646

No files matched your search

+6 -6
View File
@@ -16,7 +16,7 @@ const SheetOverlay = React.forwardRef<
<DialogPrimitive.Overlay
ref={ref}
className={cn(
"fixed inset-0 z-50 bg-black/40 backdrop-blur-sm",
"fixed inset-0 z-50 bg-black/40",
"data-[state=open]:animate-in data-[state=closed]:animate-out",
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
className,
@@ -27,24 +27,24 @@ const SheetOverlay = React.forwardRef<
SheetOverlay.displayName = DialogPrimitive.Overlay.displayName;
const sheetVariants = cva(
"fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out",
"fixed z-50 flex flex-col gap-4 bg-background transition ease-in-out",
{
variants: {
side: {
top: cn(
"inset-x-0 top-0 border-b",
"inset-x-0 top-0",
"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
),
bottom: cn(
"inset-x-0 bottom-0 border-t",
"inset-x-0 bottom-0",
"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
),
left: cn(
"inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
"inset-y-0 left-0 h-full w-3/4 sm:max-w-sm",
"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",
),
right: cn(
"inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
"inset-y-0 right-0 h-full w-3/4 sm:max-w-sm",
"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",
),
},