From 5026614bf3d4f0c6536715e21a0abde2a87cf640 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Wed, 11 Mar 2026 14:00:31 -0500 Subject: [PATCH] fix: nav overflow on small screens and fix bad gettext translations Bump desktop nav breakpoint from md (768px) to lg (1024px) so the mobile hamburger menu is used on medium-width screens instead of nav items overflowing outside the viewport. Clear all 65 bad fuzzy translations in English .po files (e.g. "Navigation" was incorrectly translated to "Pagination") and fix 49 fuzzy entries in Spanish .po files with correct translations. --- lib/towerops_web/components/layouts.ex | 12 +- priv/gettext/en/LC_MESSAGES/auth.po | 12 +- priv/gettext/en/LC_MESSAGES/default.po | 212 +++++++++++------------ priv/gettext/en/LC_MESSAGES/equipment.po | 40 ++--- priv/gettext/es/LC_MESSAGES/auth.po | 6 +- priv/gettext/es/LC_MESSAGES/default.po | 186 ++++++++++---------- 6 files changed, 234 insertions(+), 234 deletions(-) diff --git a/lib/towerops_web/components/layouts.ex b/lib/towerops_web/components/layouts.ex index c7af218f..66166a87 100644 --- a/lib/towerops_web/components/layouts.ex +++ b/lib/towerops_web/components/layouts.ex @@ -183,7 +183,7 @@ defmodule ToweropsWeb.Layouts do to: "#mobile-menu-button" ) } - class="inline-flex items-center justify-center rounded-md p-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700 focus:outline-none dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200 md:hidden" + class="inline-flex items-center justify-center rounded-md p-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700 focus:outline-none dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-200 lg:hidden" > Toggle main menu <.icon name="hero-bars-3" class="size-6" /> @@ -192,7 +192,7 @@ defmodule ToweropsWeb.Layouts do -
+
<.link navigate={~p"/dashboard"} class="text-lg sm:text-xl font-bold text-gray-900 dark:text-white" @@ -202,7 +202,7 @@ defmodule ToweropsWeb.Layouts do
-