mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
See #54. Move the flashing message to absolute positionning to avoid annoying shifting of the bills list.
This commit is contained in:
parent
ac2935b429
commit
0fe49c13d5
1 changed files with 5 additions and 3 deletions
|
@ -9,6 +9,8 @@
|
|||
{% block head %}{% endblock %}
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(document).ready(function(){
|
||||
var left = window.innerWidth/2-$('.flash').width()/2;
|
||||
$(".flash").css({ "left": left+"px", "top":"45px" });
|
||||
setTimeout(function(){
|
||||
$(".flash").fadeOut("slow", function () {
|
||||
$(".flash").remove();
|
||||
|
@ -80,13 +82,13 @@
|
|||
<div class="container-fluid" style="height: 100%; padding-left: 10px;">
|
||||
{% block sidebar %}{% endblock %}
|
||||
<div class="content" style="margin-left: 250px;">
|
||||
{% for message in get_flashed_messages() %}
|
||||
<div class="flash alert-message info"><p>{{ message }}</p></div>
|
||||
{% endfor %}
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
{% for message in get_flashed_messages() %}
|
||||
<div class="flash alert-message info" style="position:absolute;"><p>{{ message }}</p></div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
{% block footer %}
|
||||
<div id="footer">
|
||||
|
|
Loading…
Reference in a new issue