From 53ecb6f68e08cbd25af0b09e4b6279a044390750 Mon Sep 17 00:00:00 2001 From: Shashvath Date: Tue, 12 May 2026 15:18:09 +0530 Subject: [PATCH] Add mobile quick add expense button --- index.html | 134 +++++++++++++++++++++++++++++++++++++++++++ script.js | 164 +++++++++++++++++++++++++++++++++++++++++------------ 2 files changed, 261 insertions(+), 37 deletions(-) diff --git a/index.html b/index.html index 00f1a61..2dcf41f 100644 --- a/index.html +++ b/index.html @@ -34,6 +34,33 @@ .animate-fade-out { animation: fadeOut 0.3s ease-out; } + /* Mobile-only quick add controls. These supplement Tailwind output so the FAB stays mobile-only even when CSS is not rebuilt. */ + #mobileQuickAddBtn { + display: none; + } + + @media (max-width: 767px) { + #mobileQuickAddBtn { + display: flex; + left: 1.5rem; + } + + #mobileQuickAddModal.flex { + align-items: flex-end; + padding: 0 0.75rem 0.75rem; + } + + #mobileQuickAddModal > div { + max-height: 92vh; + } + } + + @media (min-width: 768px) { + #mobileQuickAddModal, + #mobileQuickAddBtn { + display: none !important; + } + }