From c542c9aebbbd4cce32f64be8828b82f8d9edca19 Mon Sep 17 00:00:00 2001 From: lowcarbdev Date: Sat, 22 Nov 2025 22:35:37 -0700 Subject: [PATCH] more mobile fixes with direct linking and others --- frontend/src/App.css | 26 +++++++++++++++++++++++++ frontend/src/App.jsx | 18 +++++++++-------- frontend/src/components/DateFilter.jsx | 27 +++++++++++++------------- 3 files changed, 50 insertions(+), 21 deletions(-) diff --git a/frontend/src/App.css b/frontend/src/App.css index a6c2803..b454ab1 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -92,3 +92,29 @@ font-size: 1rem !important; } } + +/* Date picker input sizing */ +.date-picker-input { + width: 100%; + min-width: 0; + font-size: 0.875rem; +} + +/* Date picker wrapper - responsive behavior */ +.date-picker-wrapper { + flex-shrink: 0; +} + +/* Mobile date picker - more compact and flexible */ +@media (max-width: 767.98px) { + .date-picker-wrapper { + flex-grow: 1; + flex-shrink: 1; + min-width: 0; + } + + .date-picker-input { + font-size: 0.75rem; + padding: 0.25rem 0.5rem; + } +} diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 142eb8f..fa5d29b 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -82,6 +82,8 @@ function App() { // If conversation not found in list, create a minimal conversation object setSelectedConversation({ address, contact_name: address, type: 'message' }) } + // Hide sidebar on mobile when viewing a conversation (from direct link or navigation) + setShowSidebar(false) } else { // Not viewing a specific conversation setSelectedConversation(null) @@ -223,10 +225,10 @@ function App() { className={`nav-link ${activeView === 'conversations' ? 'active' : ''}`} onClick={() => handleViewChange('conversations')} > - + - Conversations + Conversations
  • @@ -234,10 +236,10 @@ function App() { className={`nav-link ${activeView === 'calls' ? 'active' : ''}`} onClick={() => handleViewChange('calls')} > - + - Calls + Calls
  • @@ -245,10 +247,10 @@ function App() { className={`nav-link ${activeView === 'search' ? 'active' : ''}`} onClick={() => handleViewChange('search')} > - + - Search + Search
  • @@ -256,10 +258,10 @@ function App() { className={`nav-link ${activeView === 'activity' ? 'active' : ''}`} onClick={() => handleViewChange('activity')} > - + - Activity + Activity
  • diff --git a/frontend/src/components/DateFilter.jsx b/frontend/src/components/DateFilter.jsx index 8a93f91..0c4b61e 100644 --- a/frontend/src/components/DateFilter.jsx +++ b/frontend/src/components/DateFilter.jsx @@ -9,12 +9,13 @@ function DateFilter({ startDate, endDate, minDate, maxDate, onStartDateChange, o return (
    -
    -
    - - - - +
    + + + + +
    +
    -
    - +
    +
    {(startDate || endDate) && (