improve launcher history and runtime config UX
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -110,7 +110,8 @@ export function Modal({
|
||||
children,
|
||||
footer,
|
||||
onClose,
|
||||
className
|
||||
className,
|
||||
bodyClassName
|
||||
}: {
|
||||
open: boolean;
|
||||
title: ReactNode;
|
||||
@@ -118,6 +119,7 @@ export function Modal({
|
||||
footer?: ReactNode;
|
||||
onClose: () => void;
|
||||
className?: string;
|
||||
bodyClassName?: string;
|
||||
}) {
|
||||
if (!open) return null;
|
||||
|
||||
@@ -135,7 +137,7 @@ export function Modal({
|
||||
<X className="size-4" />
|
||||
</button>
|
||||
</div>
|
||||
<div className="max-h-[70vh] overflow-y-auto px-5 py-5">{children}</div>
|
||||
<div className={cn('max-h-[70vh] overflow-y-auto px-5 py-5', bodyClassName)}>{children}</div>
|
||||
{footer ? <div className="flex justify-end gap-2 border-t border-border px-5 py-4">{footer}</div> : null}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user