refactor: update TicketDetailDialog and ProjectDialog for improved layout and styling
This commit is contained in:
@@ -335,9 +335,9 @@ export function TicketDetailDialog({
|
|||||||
) : undefined
|
) : undefined
|
||||||
}
|
}
|
||||||
size="xxl"
|
size="xxl"
|
||||||
allowFullscreen
|
defaultFullscreen
|
||||||
bodyScrollable={false}
|
bodyScrollable={false}
|
||||||
bodyClassName="overflow-hidden"
|
bodyClassName="flex w-full"
|
||||||
>
|
>
|
||||||
{loading && !ticket ? (
|
{loading && !ticket ? (
|
||||||
<div className="flex h-130 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">
|
||||||
@@ -345,7 +345,7 @@ export function TicketDetailDialog({
|
|||||||
加载中...
|
加载中...
|
||||||
</div>
|
</div>
|
||||||
) : ticket ? (
|
) : ticket ? (
|
||||||
<div className="grid h-[min(72vh,680px)] min-h-0 grid-cols-1 overflow-hidden lg:grid-cols-[minmax(0,1fr)_380px] border-t">
|
<div className="grid w-full h-full grid-cols-1 overflow-hidden lg:grid-cols-[minmax(0,1fr)_380px] border-t">
|
||||||
<div className="min-h-0 space-y-5 overflow-y-auto border-b p-6 lg:border-r lg:border-b-0">
|
<div className="min-h-0 space-y-5 overflow-y-auto border-b p-6 lg:border-r lg:border-b-0">
|
||||||
<section className="space-y-2">
|
<section className="space-y-2">
|
||||||
<div className="text-sm font-medium text-muted-foreground">描述</div>
|
<div className="text-sm font-medium text-muted-foreground">描述</div>
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ function ProjectDialog({
|
|||||||
bodyClassName,
|
bodyClassName,
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div className="space-y-4 p-6">{children}</div>
|
<div className="space-y-4 p-6 w-full">{children}</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className={cn("min-h-0 flex-1", bodyClassName)}>{children}</div>
|
<div className={cn("min-h-0 flex-1", bodyClassName)}>{children}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user