From 0e9d94dafae0be5229a70d154a0af4c496738c0d Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Sun, 4 Jan 2026 18:45:25 -0600 Subject: [PATCH] fix: Wrap file input in flex container for vertical centering (refs #19) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit File inputs are replaced elements that ignore CSS centering properties. The only reliable solution is to wrap the input in a flex container with items-center. Changes: - Added wrapper div with `flex items-center h-11` - Moved border/background/focus styles to the wrapper - Input now uses flex-1 to fill available space - Used focus-within for focus ring on wrapper 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../features/documents/components/DocumentForm.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/src/features/documents/components/DocumentForm.tsx b/frontend/src/features/documents/components/DocumentForm.tsx index 933a0bc..07ee48a 100644 --- a/frontend/src/features/documents/components/DocumentForm.tsx +++ b/frontend/src/features/documents/components/DocumentForm.tsx @@ -375,12 +375,14 @@ export const DocumentForm: React.FC = ({ onSuccess, onCancel
- setFile(e.target.files?.[0] || null)} - /> +
+ setFile(e.target.files?.[0] || null)} + /> +
{uploadProgress > 0 && uploadProgress < 100 && (
Uploading... {uploadProgress}%
)}