From c21cbf5e9be43e7aa5414916cb9fb37a6816769e Mon Sep 17 00:00:00 2001 From: M Dombaugh Date: Sun, 1 Mar 2026 22:10:00 +0000 Subject: [PATCH] fix: mobile bottom nav bar sizing and layout and capture queue input visible on mobile --- static/style.css | 34 +++++++++++++++++++++++++++++++++- templates/base.html | 22 +++++++++++----------- templates/capture.html | 6 +++--- 3 files changed, 47 insertions(+), 15 deletions(-) diff --git a/static/style.css b/static/style.css index 8687752..bee6e3c 100644 --- a/static/style.css +++ b/static/style.css @@ -369,6 +369,7 @@ a:hover { color: var(--accent-hover); } .btn-sm { padding: 5px 10px; font-size: 0.8rem; } .btn-xs { padding: 3px 8px; font-size: 0.75rem; } +.btn-capture { min-height: 44px; font-size: 0.95rem; padding: 10px 20px; } /* ---- Cards ---- */ .card { @@ -561,6 +562,7 @@ a:hover { color: var(--accent-hover); } .form-input, .form-select, .form-textarea { + width: 100%; font-family: var(--font-body); font-size: 0.92rem; padding: 9px 12px; @@ -1029,13 +1031,20 @@ a:hover { color: var(--accent-hover); } height: 56px; background: var(--surface); border-top: 1px solid var(--border); - z-index: 200; + z-index: 1000; + flex-direction: row; align-items: center; justify-content: space-around; padding: 0 4px; padding-bottom: env(safe-area-inset-bottom, 0); } +.mobile-bottom-bar svg { + width: 24px; + height: 24px; + flex-shrink: 0; +} + .mobile-nav-item { display: flex; flex-direction: column; @@ -1057,6 +1066,7 @@ a:hover { color: var(--accent-hover); } .mobile-nav-item svg { width: 24px; height: 24px; + flex-shrink: 0; } .mobile-nav-item span { @@ -1137,12 +1147,34 @@ a:hover { color: var(--accent-hover); } /* ---- Responsive ---- */ @media (max-width: 768px) { + body { padding-bottom: 60px; } .sidebar { display: none; } .main-content { margin-left: 0; } .form-grid { grid-template-columns: 1fr; } .dashboard-grid { grid-template-columns: 1fr; } .page-content { padding: 16px; padding-bottom: 72px; } .mobile-bottom-bar { display: flex; } + + /* Capture form mobile */ + .capture-form-card { padding: 12px; } + .capture-form-card .form-textarea { + font-size: 16px; /* prevents iOS zoom */ + min-height: 80px; + } + .capture-form-card .btn-capture { + width: 100%; + min-height: 44px; + font-size: 1rem; + } + + /* Capture items stack on mobile */ + .capture-item { + flex-direction: column; + gap: 8px; + } + .capture-actions { + flex-wrap: wrap; + } } .search-type-appointments { background: var(--amber-soft); color: var(--amber); } diff --git a/templates/base.html b/templates/base.html index 61d78e4..837066e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -172,23 +172,23 @@ @@ -198,27 +198,27 @@
- + Notes - + Meetings - + Decisions - + Contacts - + Weblinks - + Admin
diff --git a/templates/capture.html b/templates/capture.html index 538dea2..2fbe9f7 100644 --- a/templates/capture.html +++ b/templates/capture.html @@ -5,10 +5,10 @@ -
+
- +
Context (optional)
@@ -41,7 +41,7 @@
-
+