]> git.openstreetmap.org Git - rails.git/commitdiff
Ensure that all floated elements in the header stay within it
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 23 Jun 2021 16:20:48 +0000 (17:20 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 23 Jun 2021 19:11:19 +0000 (20:11 +0100)
In certain circumstance, due to either extreme narrow screen widths,
or due to padding on floating elements exceeding the header height,
some things could appear outwith the header. This clearfix avoids
this from happening.

app/views/layouts/_header.html.erb

index 06823e18f81f1debcd658cbb2e0c61f8a55159f6..fe5bf23c5b4eb0327d0ea7b498b6add8940062ec 100644 (file)
@@ -1,4 +1,4 @@
-<header class="closed">
+<header class="closed clearfix">
   <h1>
     <a href="<%= root_path %>" class="geolink">
       <picture>