feat: update dialog size options and adjust loading indicator height
This commit is contained in:
@@ -324,14 +324,13 @@ export function TicketDetailDialog({
|
||||
</span>
|
||||
) : undefined
|
||||
}
|
||||
size="xl"
|
||||
size="xxl"
|
||||
allowFullscreen
|
||||
bodyScrollable={false}
|
||||
contentClassName="sm:max-w-5xl"
|
||||
bodyClassName="overflow-hidden"
|
||||
>
|
||||
{loading && !ticket ? (
|
||||
<div className="flex h-[520px] items-center justify-center gap-2 text-sm text-muted-foreground">
|
||||
<div className="flex h-130 items-center justify-center gap-2 text-sm text-muted-foreground">
|
||||
<RefreshCcwIcon className="size-4 animate-spin" />
|
||||
加载中...
|
||||
</div>
|
||||
|
||||
@@ -21,6 +21,7 @@ const dialogSizeClassName = {
|
||||
md: "max-w-xl sm:max-w-xl",
|
||||
lg: "max-w-2xl sm:max-w-2xl",
|
||||
xl: "max-w-4xl sm:max-w-4xl",
|
||||
xxl: "max-w-5xl sm:max-w-5xl",
|
||||
} as const;
|
||||
|
||||
type ProjectDialogSize = keyof typeof dialogSizeClassName;
|
||||
|
||||
Reference in New Issue
Block a user