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 1/4] 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)} -- 2.49.1 From 1534f33232f0d59d59e7a4a56394a759b93e7408 Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Sun, 4 Jan 2026 18:28:09 -0600 Subject: [PATCH 2/4] 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 box. Fixed by: - Using py-2.5 for input padding (10px top/bottom) - Adding file:my-auto to center the button vertically - Adjusting file:py-1.5 for button internal padding Note: flex/items-center don't work on elements as they are replaced elements. Using padding and margin-auto instead. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- frontend/src/features/documents/components/DocumentForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/features/documents/components/DocumentForm.tsx b/frontend/src/features/documents/components/DocumentForm.tsx index ab3f1a8..7dd62af 100644 --- a/frontend/src/features/documents/components/DocumentForm.tsx +++ b/frontend/src/features/documents/components/DocumentForm.tsx @@ -376,7 +376,7 @@ export const DocumentForm: React.FC = ({ onSuccess, onCancel
setFile(e.target.files?.[0] || null)} -- 2.49.1 From 75d1a421d4c0cefcf2392c581888a60dca1844e8 Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Sun, 4 Jan 2026 18:36:45 -0600 Subject: [PATCH 3/4] fix: Use line-height for file input vertical centering (refs #19) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use leading-[44px] to match the h-11 height, which should vertically center the file input content. Removed padding that was conflicting. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../documents/components/DocumentForm.tsx | 2 +- padding-issue.html | 54 +++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 padding-issue.html diff --git a/frontend/src/features/documents/components/DocumentForm.tsx b/frontend/src/features/documents/components/DocumentForm.tsx index 7dd62af..933a0bc 100644 --- a/frontend/src/features/documents/components/DocumentForm.tsx +++ b/frontend/src/features/documents/components/DocumentForm.tsx @@ -376,7 +376,7 @@ export const DocumentForm: React.FC = ({ onSuccess, onCancel
setFile(e.target.files?.[0] || null)} diff --git a/padding-issue.html b/padding-issue.html new file mode 100644 index 0000000..849d81e --- /dev/null +++ b/padding-issue.html @@ -0,0 +1,54 @@ + + + + + + + + MotoVaultPro + + + + + + + + + + + + + + + + + + + + +
+ + \ No newline at end of file -- 2.49.1 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 4/4] 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}%
)} -- 2.49.1