Исправлено отображение уведомлений

This commit is contained in:
2021-07-17 14:47:33 +03:00
parent b15720db38
commit 37a158712b
2 changed files with 9 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
.notification{
position: fixed;
left: 75%;
z-index: 1;
}

View File

@@ -11,6 +11,7 @@
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', filename = 'img/favicon-32x32.png') }}"> <link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', filename = 'img/favicon-32x32.png') }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ url_for('static', filename = 'img/favicon-16x16.png') }}"> <link rel="icon" type="image/png" sizes="16x16" href="{{ url_for('static', filename = 'img/favicon-16x16.png') }}">
<link rel="stylesheet" href="{{ url_for('static', filename = 'css/bulma.min.css') }}" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="{{ url_for('static', filename = 'css/bulma.min.css') }}" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="{{ url_for('static', filename = 'css/base.css') }}" rel="stylesheet" type="text/css">
<script src="{{ url_for('static', filename = 'js/base.js') }}"></script> <script src="{{ url_for('static', filename = 'js/base.js') }}"></script>
<script src="https://kit.fontawesome.com/6bc4cd9a8e.js" crossorigin="anonymous"></script> <script src="https://kit.fontawesome.com/6bc4cd9a8e.js" crossorigin="anonymous"></script>
</head> </head>
@@ -70,11 +71,9 @@
{% with messages = get_flashed_messages(with_categories=true) %} {% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %} {% if messages %}
{% for category, text in messages%} {% for category, text in messages%}
<div class='column is-3 is-offset-9'> <div class="notification is-light {{ category }}">
<div class="notification is-light {{ category }}"> <button class="delete"></button>
<button class="delete"></button> {{ text }}
{{ text }}
</div>
</div> </div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}