From 8587a1f948f92c61b216dd82656ed3981ade64ab Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Fri, 18 Jul 2025 14:43:12 -0500 Subject: [PATCH] Improve info page layout with compact map and reorganized cards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Reduce map height from 400px to 280px to better match position info card - Add Leaflet CSS/JS includes for map functionality - Reorganize layout: Position Info and map on top row - Move Device Info and Other SSIDs to second row in a grid - Make Other SSIDs table more compact with table-sm class - Simplify last heard display to show only time ago (remove timestamp) - Add empty placeholder div to maintain grid layout when no other SSIDs - Improve responsive layout with lg:col-span-2 and nested grids The layout now makes better use of horizontal space on larger screens while maintaining mobile responsiveness. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- lib/aprsme_web/live/info_live/show.html.heex | 67 +++++++++++++++----- 1 file changed, 51 insertions(+), 16 deletions(-) diff --git a/lib/aprsme_web/live/info_live/show.html.heex b/lib/aprsme_web/live/info_live/show.html.heex index 863834c..3ecee2f 100644 --- a/lib/aprsme_web/live/info_live/show.html.heex +++ b/lib/aprsme_web/live/info_live/show.html.heex @@ -1,3 +1,16 @@ + + + +
@@ -171,9 +184,30 @@
+ + + <%= if @packet && @packet.lat && @packet.lon do %> +
+
+ <% {symbol_table, symbol_code} = AprsmeWeb.AprsSymbol.extract_from_packet(@packet) %> + <% symbol_html = AprsmeWeb.AprsSymbol.render_marker_html(symbol_table, symbol_code, @callsign, 32) %> + <.info_map + id="station-location-map" + lat={Aprsme.EncodingUtils.to_float(@packet.lat)} + lon={Aprsme.EncodingUtils.to_float(@packet.lon)} + callsign={@callsign} + symbol_html={symbol_html} + height="280px" + zoom={12} + /> +
+
+ <% end %> - -
+ +
+ +
@@ -251,11 +285,10 @@
-
- - - <%= if length(@other_ssids) > 0 do %> -
+ + + <%= if length(@other_ssids) > 0 do %> +
@@ -272,7 +305,7 @@
- +
@@ -353,9 +383,14 @@ - <% end %> + <% else %> + +
+ <% end %> + + - +
@@ -336,14 +369,11 @@ <%= if ssid_info.last_heard do %> -
+ {ssid_info.last_heard.time_ago} -
-
- {ssid_info.last_heard.formatted} -
+ <% else %> - {gettext("Unknown")} + {gettext("Unknown")} <% end %>