tidy up layout for weather. remove extra entry.

workspace
Brendan Howell 4 years ago
parent a386c924af
commit d1e5e5168a

@ -117,7 +117,7 @@
} }
.weatherday { .weatherday {
float: left; float: left;
width: 25%; width: 12.5%;
} }
.weatherperiod img { .weatherperiod img {
width: 50%; width: 50%;
@ -192,8 +192,7 @@
<div class="weatherday"> <div class="weatherday">
<h6>Today</h6> <h6>Today</h6>
% for period in forecast: % for period in forecast:
% if daycount <= 3: % if (daycount <= 4) and (period["day"] != curr_day):
% if period["day"] != curr_day:
<% <%
daycount += 1 daycount += 1
curr_day = period["day"] curr_day = period["day"]
@ -202,6 +201,7 @@
<div class="weatherday"> <div class="weatherday">
<h6>${period["day"]}</h6> <h6>${period["day"]}</h6>
% endif % endif
% if daycount <= 3:
<div class="weatherperiod"> <div class="weatherperiod">
<img src="file://${period['symbol']}" /> <img src="file://${period['symbol']}" />
<p class="weathertime">${period["period"]}</p> <p class="weathertime">${period["period"]}</p>

Loading…
Cancel
Save