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.
This commit is contained in:
sankalp committed 2026-08-05 15:00:40 +05:45
1 parent eac9933778
commit 1699117d15
1 file changed
+4 -5
+4 -5
View File
@@ -51,8 +51,8 @@ class DesktopWeatherWidget(Box):
label="Loading...", label="Loading...",
justification="left", justification="left",
h_align="start", h_align="start",
max_chars_width=15, h_expand=True,
ellipsization="end", line_wrap="word-char",
) )
self.temperature = Label(name="temperature", label="--°", h_align="start") self.temperature = Label(name="temperature", label="--°", h_align="start")
self.condition_em = svg_file( self.condition_em = svg_file(
@@ -61,9 +61,8 @@ class DesktopWeatherWidget(Box):
self.condition = Label( self.condition = Label(
name="condition", name="condition",
label="Loading...", label="Loading...",
max_chars_width=18,
ellipsization="end",
h_align="start", h_align="start",
line_wrap="word-char",
) )
self.feels_like = Label(name="feels-like", label="L:-- H:--", h_align="start") self.feels_like = Label(name="feels-like", label="L:-- H:--", h_align="start")
@@ -130,5 +129,5 @@ class DesktopWeatherWidget(Box):
DesktopWidgetRegistry.register( DesktopWidgetRegistry.register(
"weather", DesktopWeatherWidget, (174, 174), (0.10052, 0.01044) "weather", DesktopWeatherWidget, (174, -1), (0.10052, 0.01044)
) )