From 955cb51e97dbd4f5a68e42ca565f2105e3da6687 Mon Sep 17 00:00:00 2001
From: ubq323 <ubq323>
Date: Mon, 14 Jun 2021 14:50:39 +0000
Subject: put flashed messages in a slightly less silly place, and fix their
 style slightly

---
 apioforum/static/style.css    | 2 +-
 apioforum/templates/base.html | 8 +++++---
 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>
-- 
cgit v1.2.3