From 87663d1d871250ee743ac7845b0e9ce3e4e89450 Mon Sep 17 00:00:00 2001 From: padreug Date: Tue, 5 Aug 2025 20:47:12 +0200 Subject: [PATCH] feat: Enhance mobile chat experience with responsive design and navigation - Implement mobile-first design for the chat interface, optimizing touch interactions and navigation. - Introduce a peer list view that displays only peers until a selection is made, followed by a full-width chat view. - Add a back button for easy navigation and ensure touch-friendly elements for better usability. - Optimize message bubbles and avatars for mobile readability and visibility. - Update documentation to reflect new mobile-responsive features and navigation improvements. --- CHAT_INTEGRATION.md | 12 +- src/components/nostr/ChatComponent.vue | 163 +++++++++++++++++++++++-- 2 files changed, 162 insertions(+), 13 deletions(-) diff --git a/CHAT_INTEGRATION.md b/CHAT_INTEGRATION.md index 12d5e1e..34a3131 100644 --- a/CHAT_INTEGRATION.md +++ b/CHAT_INTEGRATION.md @@ -99,7 +99,17 @@ Response: - Message timestamps - Auto-scroll to latest messages -### 4. Navigation Features +### 4. Mobile-Responsive Design +- **Mobile-first approach**: Optimized for touch interactions +- **Peer list view**: Shows only peers list on mobile until a peer is selected +- **Full-width chat view**: When a peer is selected, switches to full-width chat +- **Back button**: Easy navigation back to peers list +- **Touch-friendly**: Larger touch targets and proper touch feedback +- **Responsive avatars**: Larger avatars on mobile for better visibility +- **Message bubbles**: Optimized width (75% max) for mobile readability +- **Keyboard-friendly**: Input stays visible when keyboard appears + +### 5. Navigation Features - Integrated into main navigation menu - Message icon for easy identification - Multi-language support diff --git a/src/components/nostr/ChatComponent.vue b/src/components/nostr/ChatComponent.vue index 94c0d15..3b7105f 100644 --- a/src/components/nostr/ChatComponent.vue +++ b/src/components/nostr/ChatComponent.vue @@ -1,9 +1,85 @@