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