home/natto/ags: fix weather
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		@@ -95,6 +95,9 @@
 | 
				
			|||||||
        .weather {
 | 
					        .weather {
 | 
				
			||||||
          color: $rosewater;
 | 
					          color: $rosewater;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        & > * {
 | 
				
			||||||
 | 
					          margin: 10px;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      .power-menu {
 | 
					      .power-menu {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -47,7 +47,7 @@ export default () => {
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    Widget.Icon({
 | 
					    Widget.Icon({
 | 
				
			||||||
      icon: data.bind().as((d) => {
 | 
					      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`;
 | 
					        return `weather-${conditionIcons[condition]}-symbolic`;
 | 
				
			||||||
      }),
 | 
					      }),
 | 
				
			||||||
    }),
 | 
					    }),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user