home/natto/ags: fix weather
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		@@ -95,6 +95,9 @@
 | 
			
		||||
        .weather {
 | 
			
		||||
          color: $rosewater;
 | 
			
		||||
        }
 | 
			
		||||
        & > * {
 | 
			
		||||
          margin: 10px;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      .power-menu {
 | 
			
		||||
 
 | 
			
		||||
@@ -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`;
 | 
			
		||||
      }),
 | 
			
		||||
    }),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user