From b38b28f175f7c1a6917c35e8453c30cd43eb3c03 Mon Sep 17 00:00:00 2001 From: TerryM Date: Fri, 5 Jun 2026 21:31:43 +0800 Subject: [PATCH] fix: show full language name in the picker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The desktop language pill had a fixed width (md:w-36 lg:w-40) that truncated long labels like "Bahasa Indonesia". Drop the fixed width so the button sizes to content, remove the truncate on the label, and let the dropdown menu match parent width with a sensible min-width. Same `truncate` was hiding the full label inside the mobile drawer dropdown — bumped its width to fit too. --- src/layouts/PublicLayout.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/layouts/PublicLayout.tsx b/src/layouts/PublicLayout.tsx index 9a0b2fe..5ca46e9 100644 --- a/src/layouts/PublicLayout.tsx +++ b/src/layouts/PublicLayout.tsx @@ -158,7 +158,7 @@ function LanguageDropdown({ aria-expanded={open} > - + {selected?.label ?? lang} @@ -195,7 +195,9 @@ function LanguageDropdown({ }`} > - {option.label} + + {option.label} + ); })} @@ -259,7 +261,7 @@ function MobileLanguageButton({ {open ? (
@@ -282,7 +284,9 @@ function MobileLanguageButton({ }`} > - {option.label} + + {option.label} + ); })} @@ -694,7 +698,7 @@ export function PublicLayout() { lang={lang} setLang={changeLang} ariaLabel={t("langLabel")} - className="hidden h-10 w-36 md:block lg:w-40" + className="hidden h-10 md:block" />