mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Modal & messages: Better position & scrolling.
This commit is contained in:
parent
413b490bf8
commit
296d0937ff
4 changed files with 11 additions and 7 deletions
|
@ -187,10 +187,13 @@ body {
|
|||
#popup {
|
||||
.modal;
|
||||
.fade;
|
||||
.modal-dialog;
|
||||
.modal-content;
|
||||
overflow-y: auto;
|
||||
|
||||
& > div {
|
||||
.modal-dialog;
|
||||
.modal-content;
|
||||
}
|
||||
|
||||
#popup-title {
|
||||
.modal-header;
|
||||
.modal-title;
|
||||
|
|
2
css/style.min.css
vendored
2
css/style.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -37,10 +37,10 @@
|
|||
|
||||
</div>
|
||||
|
||||
<div id="popup" role="dialog">
|
||||
<h2 id="popup-title"></h2>
|
||||
<div id="popup-body"></div>
|
||||
</div>
|
||||
<div id="popup" role="dialog"><div>
|
||||
<h2 id="popup-title"></h2>
|
||||
<div id="popup-body"></div>
|
||||
</div></div>
|
||||
|
||||
<script type="text/javascript" src="js/vendor/jquery-1.10.1.min.js"></script>
|
||||
<script type="text/javascript" src="js/vendor/handlebars-v1.3.0.js"></script>
|
||||
|
|
|
@ -81,6 +81,7 @@ app = Sammy('#main', function (sam) {
|
|||
});
|
||||
}
|
||||
$('#flash').html(html).fadeIn();
|
||||
document.body.scrollTop = document.documentElement.scrollTop = 0;
|
||||
},
|
||||
|
||||
// API connection helper
|
||||
|
|
Loading…
Reference in a new issue