Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Sticky footer and country list table header

Claudiusa99d4f50371f
diff --git a/web-backend/static/main.css b/web-backend/static/main.css
index 3677335..2a663ec 100644
--- a/web-backend/static/main.css
+++ b/web-backend/static/main.css
@@ -64,6 +64,10 @@ footer {
padding: 8px 8px;
font-size: 0.8rem;
background-color: #fafafa;
+ @media only screen and (min-width: 1024px) {
+ bottom: 0px;
+ position: sticky;
+ }
}
footer > * + * {
diff --git a/web-backend/templates/plants_country.html b/web-backend/templates/plants_country.html
index ae3af5f..02bdfe7 100644
--- a/web-backend/templates/plants_country.html
+++ b/web-backend/templates/plants_country.html
@@ -28,7 +28,7 @@
{% if min_output %}with output greater than {{min_output|power}}{% endif %}
{% if construction %}under construction{% endif %}
in {{country|country_name}}</caption>
- <thead>
+ <thead style="position: sticky;top: -1px">
<tr>
<th style="width: 300px">Name</th>
{%- if english_name %}