From 1699117d15f03daddaf8ee979a16994f71c652eb Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Wed, 5 Aug 2026 15:00:40 +0545 Subject: [PATCH] fix(weather): stop desktop widget labels truncating Drop max_chars_width/ellipsization so location and condition wrap instead of being cut off, and let the card auto-size vertically so the big temperature no longer clips the bottom text. --- src/window/desktop/weather.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/window/desktop/weather.py b/src/window/desktop/weather.py index 8cb1eb7..a9593eb 100644 --- a/src/window/desktop/weather.py +++ b/src/window/desktop/weather.py @@ -51,8 +51,8 @@ class DesktopWeatherWidget(Box): label="Loading...", justification="left", h_align="start", - max_chars_width=15, - ellipsization="end", + h_expand=True, + line_wrap="word-char", ) self.temperature = Label(name="temperature", label="--°", h_align="start") self.condition_em = svg_file( @@ -61,9 +61,8 @@ class DesktopWeatherWidget(Box): self.condition = Label( name="condition", label="Loading...", - max_chars_width=18, - ellipsization="end", h_align="start", + line_wrap="word-char", ) self.feels_like = Label(name="feels-like", label="L:-- H:--", h_align="start") @@ -130,5 +129,5 @@ class DesktopWeatherWidget(Box): DesktopWidgetRegistry.register( - "weather", DesktopWeatherWidget, (174, 174), (0.10052, 0.01044) + "weather", DesktopWeatherWidget, (174, -1), (0.10052, 0.01044) )