fixed form with on mobile

This commit is contained in:
2024-01-16 14:28:10 +01:00
parent ac17d744b1
commit 4c6292b6c6
2 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ export const LocationEditForm:FC<LocationEditFormProps> = ({ location, yearMonth
return(
<Main>
<div className="card card-compact card-bordered min-w-96 bg-base-100 shadow-s my-1">
<div className="card card-compact card-bordered min-w-[20em] max-w-[90em] bg-base-100 shadow-s my-1">
<div className="card-body">
<form action={dispatch}>
{
@@ -49,7 +49,7 @@ export const LocationEditForm:FC<LocationEditFormProps> = ({ location, yearMonth
))}
</div>
<textarea id="locationNotes" name="locationNotes" className="textarea textarea-bordered my-1 w-full max-w-sm block" placeholder="Opis" defaultValue={location?.notes ?? ""}></textarea>
<textarea id="locationNotes" name="locationNotes" className="textarea textarea-bordered my-1 w-full block" placeholder="Opis" defaultValue={location?.notes ?? ""}></textarea>
<div id="status-error" aria-live="polite" aria-atomic="true">
{state.errors?.locationNotes &&
state.errors.locationNotes.map((error: string) => (