From d9ec8a91c335f24b53260fc0028fa83988b5c43e Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Tue, 14 Apr 2026 16:59:31 -0500 Subject: [PATCH] Stop HRRR badge from wrapping mid-phrase on the contact page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The atmospheric profile header was a single-line flex row with no wrap, so on narrower viewports the HRRR (3 km) badge and the unit suffixes were breaking mid-phrase — the badge showed "HRRR (3 / km)" with borders crossing through the text. Add flex-wrap plus whitespace-nowrap on each cell so the whole row wraps cleanly onto a second line instead of shrinking each cell vertically. --- .../live/contact_live/show.ex | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/lib/microwaveprop_web/live/contact_live/show.ex b/lib/microwaveprop_web/live/contact_live/show.ex index bd6618a5..b40a4676 100644 --- a/lib/microwaveprop_web/live/contact_live/show.ex +++ b/lib/microwaveprop_web/live/contact_live/show.ex @@ -1134,18 +1134,24 @@ defmodule MicrowavepropWeb.ContactLive.Show do phx-click="toggle_hrrr_profile" class="w-full flex items-center justify-between p-4 hover:bg-base-200 transition-colors" > -
- {profile_source} - +
+ {profile_source} + {format_number(profile.lat)}°, {format_number(profile.lon)}° - {Calendar.strftime(profile.valid_time, "%H:%M UTC")} - HPBL: {format_number(profile.hpbl_m)} m - PWAT: {format_number(profile.pwat_mm)} mm - N: {format_number(profile.surface_refractivity)} - dN/dh: {format_number(profile.min_refractivity_gradient)} + + {Calendar.strftime(profile.valid_time, "%H:%M UTC")} + + HPBL: {format_number(profile.hpbl_m)} m + PWAT: {format_number(profile.pwat_mm)} mm + + N: {format_number(profile.surface_refractivity)} + + + dN/dh: {format_number(profile.min_refractivity_gradient)} + <%= if profile.ducting_detected do %> - Ducting + Ducting <% end %>
<.icon