From 5af717ac53a3e5e9b5ba6c73bdf4cb39d0660b0f Mon Sep 17 00:00:00 2001 From: Amneesh Singh Date: Sat, 1 Jun 2024 18:12:13 +0530 Subject: [PATCH] home/natto/ags: fix weather Signed-off-by: Amneesh Singh --- home/natto/ags/styles/settings.scss | 3 +++ home/natto/ags/windows/settings/weather.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/home/natto/ags/styles/settings.scss b/home/natto/ags/styles/settings.scss index 1194e3e..c79372a 100644 --- a/home/natto/ags/styles/settings.scss +++ b/home/natto/ags/styles/settings.scss @@ -95,6 +95,9 @@ .weather { color: $rosewater; } + & > * { + margin: 10px; + } } .power-menu { diff --git a/home/natto/ags/windows/settings/weather.js b/home/natto/ags/windows/settings/weather.js index 05e97fe..9fb3d96 100644 --- a/home/natto/ags/windows/settings/weather.js +++ b/home/natto/ags/windows/settings/weather.js @@ -47,7 +47,7 @@ export default () => { }, Widget.Icon({ icon: data.bind().as((d) => { - const condition = d?.["weatherDesc"]?.[0]?.["value"]; + const condition = d?.["weatherDesc"]?.[0]?.["value"]?.split(/[\s,]+/)?.[0]; return `weather-${conditionIcons[condition]}-symbolic`; }), }),