aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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>