From 5e1e42fc86c99992de34e744084859e990b37c91 Mon Sep 17 00:00:00 2001 From: lichenblankie Date: Fri, 5 Jun 2026 02:33:28 +0000 Subject: [PATCH] fix retention input layout: inline label, override full-width --- tinyweb_forum/handlers.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tinyweb_forum/handlers.py b/tinyweb_forum/handlers.py index 91eca8d..7875d05 100644 --- a/tinyweb_forum/handlers.py +++ b/tinyweb_forum/handlers.py @@ -21,9 +21,11 @@ FORUM_CSS = """ .forum-form { max-width: 500px; } .forum-form input:not([type=checkbox]):not([type=radio]), .forum-form textarea { width: 100%; box-sizing: border-box; padding: 6px; margin-bottom: 8px; } .forum-form input[type=checkbox] { width: auto; margin: 0; } +.forum-form label.inline-label input { width: auto; display: inline; } .forum-form button { padding: 6px 16px; } -.forum-form label:not(.checkbox-label) { display: block; margin-bottom: 8px; } +.forum-form label:not(.checkbox-label):not(.inline-label) { display: block; margin-bottom: 8px; } .forum-form label.checkbox-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; } +.forum-form label.inline-label { display: inline; margin-bottom: 8px; } .forum-form small { display: block; margin-bottom: 8px; } """ @@ -549,8 +551,8 @@ class ForumHandlers: f"

storage

" f'
' f'{self._csrf_field()}' - f'' + f'' f"Older threads are pruned automatically (default: 30). Set to 0 to keep everything." f'' f"
"