Skip to content

Commit

Permalink
fix: update weather icon and description rendering in detection list
Browse files Browse the repository at this point in the history
- Changed the weather icon retrieval to use the correct icon code for improved accuracy.
- Updated the display of weather descriptions to provide clearer information based on the weather icon.
- This enhancement improves the user interface by ensuring that weather data is presented more intuitively.
  • Loading branch information
tphakala committed Jan 5, 2025
1 parent 897468b commit f0e061e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/fragments/listDetections.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@
<td class="py-1 px-2 font-normal {{if ne $.QueryType "species"}}hidden sm:table-cell{{end}}">
{{if .Weather}}
<div class="flex items-center gap-2">
<span>{{weatherIcon .Weather.WeatherMain .TimeOfDay}}</span>
<span>{{.Weather.WeatherMain}}</span>
<span>{{weatherIcon .Weather.WeatherIcon .TimeOfDay}}</span>
<span>{{weatherDescription .Weather.WeatherIcon}}</span>
</div>
{{else}}
<div>No weather data</div>
Expand Down

0 comments on commit f0e061e

Please sign in to comment.