aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorubq323 <ubq323>2021-06-14 14:50:39 +0000
committerubq323 <ubq323>2021-06-14 14:50:39 +0000
commit955cb51e97dbd4f5a68e42ca565f2105e3da6687 (patch)
treead4b0db4296e98fc40a9f97fe05c3e3555fdc608
parent9e505bc638e0eb7d40f0ce18afdfeb1077a98075 (diff)
put flashed messages in a slightly less silly place, and fix their style slightly
-rw-r--r--apioforum/static/style.css2
-rw-r--r--apioforum/templates/base.html8
2 files changed, 6 insertions, 4 deletions
diff --git a/apioforum/static/style.css b/apioforum/static/style.css
index 025cee0..46115db 100644
--- a/apioforum/static/style.css
+++ b/apioforum/static/style.css
@@ -57,7 +57,7 @@ nav { float: right }
nav a { color: blue; text-decoration: none }
/* todo: make the navbar less bad */
-.flashmsg { border: 1px solid black; background-color: yellow; width: max-content; padding: 5px; clear: both;}
+.flashmsg { border: 1px solid black; background-color: yellow; max-width: max-content; padding: 5px; clear: both;}
.threadlisting:nth-child(even) { background-color: var(--alternating-colour-even) }
.threadlisting:nth-child(odd) { background-color: var(--alternating-colour-odd) }
diff --git a/apioforum/templates/base.html b/apioforum/templates/base.html
index 7e01d38..37edcb8 100644
--- a/apioforum/templates/base.html
+++ b/apioforum/templates/base.html
@@ -35,13 +35,15 @@
{% endif %}
</ul>
</nav>
- {% for msg in get_flashed_messages() %}
- <div class="flashmsg">{{ msg }}</div>
- {% endfor %}
<div class="header">
{% block header %}{% endblock %}
</div>
+
+ {% for msg in get_flashed_messages() %}
+ <div class="flashmsg">{{ msg }}</div>
+ {% endfor %}
+
<main>
{%block content %}{% endblock %}
</main>