From e38e8fd149ad58e0cf9a971e8f44da85c69ff03f Mon Sep 17 00:00:00 2001 From: lowcarbdev Date: Sat, 22 Nov 2025 15:56:45 -0700 Subject: [PATCH] mobile view tweaks --- frontend/src/App.css | 15 +++++++++++--- frontend/src/App.jsx | 24 +++++------------------ frontend/src/components/MessageThread.jsx | 20 +++++++++---------- 3 files changed, 27 insertions(+), 32 deletions(-) diff --git a/frontend/src/App.css b/frontend/src/App.css index 95de93f..a6c2803 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -60,7 +60,7 @@ max-width: 100%; min-width: 100%; height: 100%; - z-index: 1000; + z-index: 1020; transform: translateX(-100%); } @@ -70,6 +70,8 @@ .message-thread-container { width: 100%; + position: relative; + z-index: 1010; } } @@ -79,7 +81,14 @@ transform: translateX(0) !important; } - .mobile-back-button { - display: none !important; + .thread-header-title { + font-size: 1.25rem !important; + } +} + +/* Mobile - smaller thread header title */ +@media (max-width: 767.98px) { + .thread-header-title { + font-size: 1rem !important; } } diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 51f93e1..dbd6596 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -146,7 +146,7 @@ function App() { return (
{/* Header */} -
+
@@ -155,9 +155,6 @@ function App() {

SMS Backup Viewer

-
-
{user?.username}
-
{/* Date Filter */} -
+
- {/* Mobile back button */} - {selectedConversation && ( -
- -
- )} {/* Thread Header */} -
-
-
+
+
+
{isCallLog ? ( - + ) : ( - + )}
-
-

+
+

{getDisplayName(conversation)}

{/* Display phone numbers for conversations with addresses */} @@ -375,7 +375,7 @@ function MessageThread({ conversation, startDate, endDate }) { ? firstItem.message.addresses : firstItem.addresses return addresses && addresses.length > 0 && ( -
+
{addresses.map((addr, idx) => ( {formatPhoneNumber(addr)} @@ -386,7 +386,7 @@ function MessageThread({ conversation, startDate, endDate }) { ) })()}
- + {items.length} {isCallLog ? 'call' : 'message'}{items.length !== 1 ? 's' : ''}
@@ -395,7 +395,7 @@ function MessageThread({ conversation, startDate, endDate }) {
{/* Content */} -
+
{isCallLog ? ( // Call Log View