Skip to content

A live bird collage card for your Home Assistant dashboard.

tidy location settings

frederik54a9a8041d76
diff --git a/homepage/style.css b/homepage/style.css
index 5a45c775..4c0c7b73 100644
--- a/homepage/style.css
+++ b/homepage/style.css
@@ -801,6 +801,13 @@ form#views button .updatenumber {
.settingstable h2 {
font-size:x-large;
}
+.plaintable {
+ box-shadow: unset;
+}
+.plaintable td {
+ padding: unset;
+}
+
.brbanner h1 {
margin:0px;
font-size: xx-large;
diff --git a/scripts/config.php b/scripts/config.php
index 15235428..415c132f 100644
--- a/scripts/config.php
+++ b/scripts/config.php
@@ -443,12 +443,22 @@ function runProcess() {
<table class="settingstable"><tr><td>
<h2>Location</h2>
- <label for="site_name">Site Name: </label>
- <input name="site_name" type="text" value="<?php print($config['SITE_NAME']);?>"/> (Optional)<br>
- <label for="latitude">Latitude: &nbsp; &nbsp;</label>
- <input name="latitude" type="number" max="90" min="-90" step="0.0001" value="<?php print($config['LATITUDE']);?>" required/><br>
- <label for="longitude">Longitude: </label>
- <input name="longitude" type="number" max="180" min="-180" step="0.0001" value="<?php print($config['LONGITUDE']);?>" required/><br>
+ <table class="settingstable plaintable">
+ <tr>
+ <td><label for="site_name">Site Name:</label></td>
+ <td><input name="site_name" type="text" value="<?php print($config['SITE_NAME']);?>"/></td>
+ <td>(Optional)</td>
+ </tr>
+ <tr>
+ <td><label for="latitude">Latitude:</label></td>
+ <td><input name="latitude" type="number" style="width:6em;" max="90" min="-90" step="0.0001" value="<?php print($config['LATITUDE']);?>" required/></td>
+ </tr>
+ <tr>
+ <td><label for="longitude">Longitude: </label></td>
+ <td><input name="longitude" type="number" style="width:6em;" max="180" min="-180" step="0.0001" value="<?php print($config['LONGITUDE']);?>" required/></td>
+ <td></td>
+ </tr>
+ </table>
<p>Set your Latitude and Longitude to 4 decimal places. Get your coordinates <a href="https://latlong.net" target="_blank">here</a>.</p>
</td></tr></table><br>
<table class="settingstable"><tr><td>