From 4b2ae4c7fc4628722677d7f3afa6508ae6f734ba Mon Sep 17 00:00:00 2001 From: Phil Date: Mon, 2 Nov 2026 18:24:14 -0700 Subject: [PATCH] fix: Admin pages line up with the header (v2.6.7) Every page sat in the 40rem reading column, so the admin wrapper's 60rem never applied and the notes table, which can't shrink that far, ran past the header's right edge. Admin pages now set a 60rem frame for header, content and footer; post previews wrap, and tables scroll sideways on narrow screens. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 6 ++++++ starpunk/__init__.py | 2 +- static/css/style.css | 5 +++-- templates/admin/base.html | 3 +++ templates/admin/dashboard.html | 2 ++ templates/admin/tokens.html | 2 ++ templates/admin/webmentions.html | 2 ++ templates/base.html | 2 +- 8 files changed, 20 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46e4005..9abf547 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [2.6.7] - 2026-11-02 + +### Fixed + +- Admin pages were misaligned: the notes table ran past the right edge of the header and admin menu, because every page sat in the 40rem reading column and the table couldn't shrink to fit it. Admin pages now use a 60rem frame for the header, menu, content and footer alike, long post previews wrap, and on narrow screens tables scroll sideways instead of spilling out + ## [2.6.6] - 2026-11-02 ### Fixed diff --git a/starpunk/__init__.py b/starpunk/__init__.py index 4376c78..65ddaf2 100644 --- a/starpunk/__init__.py +++ b/starpunk/__init__.py @@ -464,5 +464,5 @@ def create_app(config=None): # Package version (Semantic Versioning 2.0.0) # See docs/standards/versioning-strategy.md for details -__version__ = "2.6.6" +__version__ = "2.6.7" __version_info__ = (2, 6, 4) diff --git a/static/css/style.css b/static/css/style.css index a0aa74b..fa2e8d2 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -136,7 +136,8 @@ small { display: block; margin-top: var(--spacing-xs); color: var(--color-text-l .button-warning { background: var(--color-warning); color: #333; border-color: var(--color-warning); } .button-small { padding: 0.25rem 0.5rem; font-size: 0.875rem; } -.admin-container { max-width: 60rem; } +.admin-page { --max-width: 60rem; } +.table-scroll { overflow-x: auto; } .admin-nav { display: flex; gap: var(--spacing-md); padding: var(--spacing-md); background: var(--color-bg-alt); border-radius: var(--border-radius); margin-bottom: var(--spacing-lg); flex-wrap: wrap; align-items: center; } .admin-nav .logout-form { margin-left: auto; } .admin-nav .logout-form button { margin: 0; } @@ -147,7 +148,7 @@ small { display: block; margin-top: var(--spacing-xs); color: var(--color-text-l .note-table { width: 100%; border-collapse: collapse; margin-top: var(--spacing-md); } .note-table th, .note-table td { padding: var(--spacing-md); text-align: left; border-bottom: 1px solid var(--color-border); } .note-table th { background: var(--color-bg-alt); font-weight: 600; } -.note-content-preview { max-width: 30rem; } +.note-content-preview { min-width: 14rem; overflow-wrap: anywhere; } .note-excerpt { margin-bottom: var(--spacing-xs); } .note-slug { color: var(--color-text-light); font-family: var(--font-mono); font-size: 0.75rem; } .note-date { white-space: nowrap; color: var(--color-text-light); } diff --git a/templates/admin/base.html b/templates/admin/base.html index 27aeebb..1743e95 100644 --- a/templates/admin/base.html +++ b/templates/admin/base.html @@ -1,5 +1,8 @@ {% extends "base.html" %} +{# Admin pages use a wider frame so tables fit under the header #} +{% block body_class %} class="admin-page"{% endblock %} + {% block content %}
{% if notes %} +
@@ -67,6 +68,7 @@ {% endfor %}
+
{# Pagination (v1.6.0) #} {% if total_pages > 1 %} diff --git a/templates/admin/tokens.html b/templates/admin/tokens.html index 94f26be..1f386ac 100644 --- a/templates/admin/tokens.html +++ b/templates/admin/tokens.html @@ -8,6 +8,7 @@

Micropub apps you have approved. Revoke any you no longer use.

{% if tokens %} +
@@ -37,6 +38,7 @@ {% endfor %}
+
{% else %}

No apps connected.

{% endif %} diff --git a/templates/admin/webmentions.html b/templates/admin/webmentions.html index 0dc101b..e6b2bab 100644 --- a/templates/admin/webmentions.html +++ b/templates/admin/webmentions.html @@ -43,6 +43,7 @@ +
@@ -85,6 +86,7 @@ {% endfor %}
+
{# Pagination #} diff --git a/templates/base.html b/templates/base.html index ee29581..3a2472c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -27,7 +27,7 @@ {% block head %}{% endblock %} - + {% if config.DEV_MODE %}
WARNING: DEVELOPMENT MODE - Authentication bypassed