Add clearfix to "Toggle map" link to fix tab overlap issue on mobile.

This commit is contained in:
Michael Stenta 2020-04-09 15:37:42 -04:00
parent 6bab998664
commit 86db1840f7
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
});
// Generate a link for expanding/collapsing the map.
var link = '<a href="#' + id + '" data-toggle="collapse" aria-expanded="' + (collapsed ? 'false' : 'true') + '" aria-controls="' + id + '" style="float: right; margin: 0.5em 1em 0 0;"><span class="glyphicon glyphicon-globe"></span> Toggle map</a>';
var link = '<div class="clearfix"><a href="#' + id + '" data-toggle="collapse" aria-expanded="' + (collapsed ? 'false' : 'true') + '" aria-controls="' + id + '" style="float: right; margin: 0.5em 1em 0 0;"><span class="glyphicon glyphicon-globe"></span> Toggle map</a></div>';
$('#' + id, context).after(link);
// When the map is expanded/collapsed, toggle the link text and update