Admin: szerszy modal formularza cwiczenia (opcjonalny className Modala, sm:max-w-2xl)
This commit is contained in:
@@ -15,16 +15,18 @@ export function Modal({
|
||||
open,
|
||||
onClose,
|
||||
title,
|
||||
className,
|
||||
children,
|
||||
}: {
|
||||
open: boolean;
|
||||
onClose: () => void;
|
||||
title: string;
|
||||
className?: string;
|
||||
children: ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<Dialog open={open} onOpenChange={(o) => !o && onClose()}>
|
||||
<DialogContent>
|
||||
<DialogContent className={className}>
|
||||
<DialogHeader>
|
||||
<DialogTitle asChild>
|
||||
<h3 className="text-[1.05rem] font-semibold">{title}</h3>
|
||||
|
||||
@@ -408,6 +408,7 @@ export default function Exercises() {
|
||||
open={formOpen}
|
||||
onClose={() => setFormOpen(false)}
|
||||
title={editing ? 'Edytuj ćwiczenie' : 'Nowe ćwiczenie'}
|
||||
className="sm:max-w-2xl"
|
||||
>
|
||||
<div className="flex flex-col gap-3.5">
|
||||
<Field label="Nazwa">
|
||||
|
||||
Reference in New Issue
Block a user