diff --git a/main.py b/main.py
index af83593..81b3230 100644
--- a/main.py
+++ b/main.py
@@ -43,6 +43,9 @@ app.add_middleware(SessionMiddleware, secret_key=config.SECRET_KEY, https_only=T
same_site="lax", max_age=60 * 60 * 12)
app.mount("/static", StaticFiles(directory=config.BASE / "static"), name="static")
templates = Jinja2Templates(directory=str(config.BASE / "templates"))
+# Cache-busting af portalens eget CSS: uden Cache-Control cacher Safari heuristisk i timevis,
+# så en rettelse i portal.css nåede ikke telefonen. Versionen er filens ændringstid.
+templates.env.globals["static_v"] = str(int((config.BASE / "static" / "portal.css").stat().st_mtime))
oauth = OAuth()
oauth.register(
diff --git a/static/portal.css b/static/portal.css
index 226e0ae..9f0a542 100644
--- a/static/portal.css
+++ b/static/portal.css
@@ -174,11 +174,10 @@ th { color:var(--muted); font-weight:600; font-size:.8rem; text-transform:upperc
.ucard.hidden { display:none; }
-/* Tabeller og andet bredt indhold må aldrig give siden vandret scroll på en telefon.
- Standard for alle sider: på smalle skærme bliver en tabel sit eget rulleområde,
- og lange ord/nøgler brydes. (Ops-siden har desuden sin egen kort-visning.) */
+/* Tabeller og andet bredt indhold må aldrig give siden vandret scroll.
+ base.html pakker hver tabel i .wt-table-wrap (standardkomponent, også for injiceret indhold):
+ tabellen ruller i sit eget område. Lange ord/nøgler uden for tabeller brydes. */
.wt-main { overflow-wrap: anywhere; min-width: 0; }
-@media (max-width: 760px) {
- .wt-main table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
- .wt-main table td, .wt-main table th { overflow-wrap: normal; }
-}
+.wt-table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
+.wt-table-wrap > table { margin-top: 0; }
+.wt-table-wrap table td, .wt-table-wrap table th { overflow-wrap: normal; }
diff --git a/templates/base.html b/templates/base.html
index 8c1b97b..145b4b0 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -11,7 +11,7 @@
-
+
{% block head %}{% endblock %}
@@ -56,6 +56,22 @@