From b7332cc2e062ab986b0627f730db33e3648b404c Mon Sep 17 00:00:00 2001 From: quadbyte Date: Tue, 12 Aug 2025 15:39:33 -0400 Subject: [PATCH] WeatherCard: keep the name for long location name (split around the comma) --- Modules/SidePanel/Cards/WeatherCard.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Modules/SidePanel/Cards/WeatherCard.qml b/Modules/SidePanel/Cards/WeatherCard.qml index 33fb661..1d4d066 100644 --- a/Modules/SidePanel/Cards/WeatherCard.qml +++ b/Modules/SidePanel/Cards/WeatherCard.qml @@ -35,7 +35,11 @@ NBox { ColumnLayout { spacing: -Style.marginTiny * scaling NText { - text: Settings.data.location.name + text: { + // Ensure the name is not too long if one had to specify the country + const chunks = Settings.data.location.name.split(",") + return chunks[0] + } font.weight: Style.fontWeightBold font.pointSize: Style.fontSizeXL * scaling }