Skip to content

A live bird collage card for your Home Assistant dashboard.

slight adjustments

mcguirepr89339233f73ddc
diff --git a/homepage/style.css b/homepage/style.css
index b013f748..44e3fb43 100644
--- a/homepage/style.css
+++ b/homepage/style.css
@@ -181,6 +181,13 @@ button:hover {
vertical-align: middle;
}
+.overview img {
+ display: block;
+ max-height: 100%;
+ margin-left: 25%;
+ margin-right: 10%;
+}
+
.overview span {
width: auto;
margin-right: 20%;
@@ -363,11 +370,25 @@ body::-webkit-scrollbar {
}
@media screen and (max-width: 1290px) {
+ .overview img {
+ display: block;
+ max-height: 100%;
+ margin-left: auto;
+ margin-right: auto;
+ }
+
.column1,.column2,.column3,.column4 {
height: 90%
}
}
@media screen and (max-width: 1000px) {
+ .overview img {
+ display: block;
+ max-height: 100%;
+ margin-left: 25%;
+ margin-right: 10%;
+ }
+
.customlabels form,.customlabels2 form {
width: 95%;
}
@@ -497,6 +518,12 @@ body::-webkit-scrollbar {
margin: 0;
width: 100%;
}
+ .overview img {
+ display: block;
+ max-height: 100%;
+ margin-left: 25%;
+ margin-right: 10%;
+ }
.version {display:none;}
.left {
display:none;
diff --git a/scripts/overview.php b/scripts/overview.php
index 6f7c8350..977bae57 100644
--- a/scripts/overview.php
+++ b/scripts/overview.php
@@ -104,7 +104,7 @@ $totalspeciestally = $result6->fetchArray(SQLITE3_ASSOC);
</div>
<?php
if (file_exists('/home/pi/BirdSongs/Extracted/Charts/'.$chart)) {
- echo "<img style=\"display:block;max-height:100%;margin-left:25%;margin-right:10%;\" src=\"/Charts/$chart?nocache=time()\">";
+ echo "<img src=\"/Charts/$chart?nocache=time()\">";
} else {
echo "<p>No Detections For Today</p>";
}