Skip to content

Commit

Permalink
Mobile && Fixed Precision
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinDFuller committed Aug 5, 2023
1 parent a89458a commit f7c823a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions make/grass.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@
background: white;
cursor: pointer;
text-align: center;
min-width: 150px;
max-width: 30%;
width: 45%;
border-top: 2px solid black;
border-left: 2px solid black;
border-right: 4px solid black;
Expand All @@ -140,6 +139,12 @@
margin-bottom: 20px;
}

@media screen and (max-width: 400px) {
.day {
width: 100%;
}
}

.day:hover {
border-right: 3px solid black;
border-bottom: 3px solid black;
Expand Down Expand Up @@ -508,7 +513,7 @@ <h1>Grass Watering</h1>

document
.getElementById(day.day)
.querySelector(".rain").innerText = day.precipitationInches;
.querySelector(".rain").innerText = day.precipitationInches.toFixed(2);

document
.getElementById(day.day)
Expand Down

0 comments on commit f7c823a

Please sign in to comment.