From 510420e4fdac93872c13eeaf6970a89f815fb06f Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Sun, 4 Jan 2026 15:14:08 -0600 Subject: [PATCH] fix: Vertically center file input content (refs #19) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "Choose File" button and "No file chosen" text were not vertically centered within the file input. This was caused by: 1. Browser default `align-items: baseline` for file inputs 2. Conflicting `py-2` padding on the input container Fixed by: - Removing `py-2` (conflicting vertical padding) - Adding `flex items-center` (explicit vertical centering) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- frontend/src/features/documents/components/DocumentForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/features/documents/components/DocumentForm.tsx b/frontend/src/features/documents/components/DocumentForm.tsx index 6351bb4..ab3f1a8 100644 --- a/frontend/src/features/documents/components/DocumentForm.tsx +++ b/frontend/src/features/documents/components/DocumentForm.tsx @@ -156,7 +156,7 @@ export const DocumentForm: React.FC = ({ onSuccess, onCancel return (
-
+
setFile(e.target.files?.[0] || null)}