fix: Add bottom padding to document form grid container (refs #19)
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 2m37s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 27s
Deploy to Staging / Verify Staging (pull_request) Successful in 6s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 6s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped

Added pb-4 to the grid container to create consistent spacing between
the last form field (file input) and the action buttons below.

The previous approach of adding margin to a grid item didn't work as
expected due to CSS Grid layout behavior. Adding padding to the grid
container itself ensures reliable spacing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Eric Gullickson
2026-01-04 15:14:08 -06:00
parent 453083b7db
commit 087cf3b06c

View File

@@ -156,7 +156,7 @@ export const DocumentForm: React.FC<DocumentFormProps> = ({ onSuccess, onCancel
return ( return (
<LocalizationProvider dateAdapter={AdapterDayjs}> <LocalizationProvider dateAdapter={AdapterDayjs}>
<form onSubmit={handleSubmit} className="w-full"> <form onSubmit={handleSubmit} className="w-full">
<div className="grid grid-cols-1 md:grid-cols-2 gap-4"> <div className="grid grid-cols-1 md:grid-cols-2 gap-4 pb-4">
<div className="flex flex-col"> <div className="flex flex-col">
<label className="text-sm font-medium text-slate-700 dark:text-avus mb-1">Vehicle</label> <label className="text-sm font-medium text-slate-700 dark:text-avus mb-1">Vehicle</label>
<select <select