Fix error message taking full height and preventing map events;

make error text selectable
This commit is contained in:
Norbert Renner 2018-07-17 10:44:47 +02:00
parent 92537cc00d
commit bdc1fd0cb4
2 changed files with 5 additions and 4 deletions

View file

@ -133,8 +133,11 @@ footer {
-moz-user-select: text;
}
#message {
position: absolute;
margin: 10px 46px; /* 10 + 26 + 10 */
z-index: 3000;
font-size: 1rem;
cursor: auto;
}
#profile_buttons {
@ -248,10 +251,6 @@ https://css-tricks.com/svg-line-animation-works/
padding: 2px 15px;
}
#message .alert {
margin: 10px 46px; /* 10 + 26 + 10 */
}
#profile_message .alert {
margin-top: 3px;
}

View file

@ -15,6 +15,8 @@ BR.Message = L.Class.extend({
iconClass = (type === 'warning') ? 'fa-exclamation-triangle' : 'fa-times-circle',
alertClass = (type === 'warning') ? 'alert-warning' : 'alert-danger';
L.DomEvent.disableClickPropagation(ele);
ele.innerHTML =
'<div class="alert ' + alertClass + ' alert-dismissible fade in" role="alert">'
+ ' <button type="button" class="close" data-dismiss="alert" aria-label="Close">'