From 34cd35f4ab3b62a1c8eb0404be6b31ed46237c76 Mon Sep 17 00:00:00 2001 From: Marco Morath Date: Thu, 26 Nov 2026 14:12:14 +0100 Subject: [PATCH] fix:css Terminumfrage --- .env.example | 2 +- surveybox/locale/de/LC_MESSAGES/messages.po | 6 +++--- surveybox/locale/en/LC_MESSAGES/messages.po | 6 +++--- surveybox/locale/fr/LC_MESSAGES/messages.po | 6 +++--- surveybox/locale/messages.pot | 4 ++-- surveybox/web/static/css/app.css | 10 +++++++++- surveybox/web/templates/question_edit.html | 6 +++--- 7 files changed, 24 insertions(+), 16 deletions(-) diff --git a/.env.example b/.env.example index 420229f..bc4fc5d 100644 --- a/.env.example +++ b/.env.example @@ -23,7 +23,7 @@ SURVEYBOX_NET_SUBNET=172.30.40.0/24 # --- Instanz -------------------------------------------------------------- # Öffentliche Adresse, wie Nutzer sie aufrufen. Später nicht mehr ändern: # Passkeys sind an diese Domain gebunden. -SURVEYBOX_PUBLIC_URL=https://foo.bar +SURVEYBOX_PUBLIC_URL=https://test.umfrage.cloud.mmorath.de # Mindestens 32 Zeichen. Erzeugen mit: openssl rand -hex 32 # NIE ÄNDERN, sobald Konten existieren: Daraus abgeleitet sind u. a. die # Verschlüsselung der TOTP-Geheimnisse und die Wiederherstellungscodes. diff --git a/surveybox/locale/de/LC_MESSAGES/messages.po b/surveybox/locale/de/LC_MESSAGES/messages.po index 55becb9..7d1bf94 100644 --- a/surveybox/locale/de/LC_MESSAGES/messages.po +++ b/surveybox/locale/de/LC_MESSAGES/messages.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: Surveybox VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2026-11-26 10:29+0100\n" +"POT-Creation-Date: 2026-11-26 14:08+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: de\n" @@ -6195,8 +6195,8 @@ msgid "" msgstr "Nur für Termin-Optionen. Uhrzeit und Dauer sind optional; ohne Uhrzeit gilt der ganze Tag." #: surveybox/web/templates/question_edit.html -msgid "Minutes" -msgstr "Minuten" +msgid "Duration (min.)" +msgstr "Dauer (Min.)" #: surveybox/web/templates/question_edit.html msgid "Note" diff --git a/surveybox/locale/en/LC_MESSAGES/messages.po b/surveybox/locale/en/LC_MESSAGES/messages.po index 4359f04..3e62152 100644 --- a/surveybox/locale/en/LC_MESSAGES/messages.po +++ b/surveybox/locale/en/LC_MESSAGES/messages.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: Surveybox VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2026-11-26 10:29+0100\n" +"POT-Creation-Date: 2026-11-26 14:08+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: en\n" @@ -6131,8 +6131,8 @@ msgstr "" "counts as a whole day." #: surveybox/web/templates/question_edit.html -msgid "Minutes" -msgstr "Minutes" +msgid "Duration (min.)" +msgstr "Duration (min.)" #: surveybox/web/templates/question_edit.html msgid "Note" diff --git a/surveybox/locale/fr/LC_MESSAGES/messages.po b/surveybox/locale/fr/LC_MESSAGES/messages.po index 2d31a9b..9a6980f 100644 --- a/surveybox/locale/fr/LC_MESSAGES/messages.po +++ b/surveybox/locale/fr/LC_MESSAGES/messages.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: Surveybox VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2026-11-26 10:29+0100\n" +"POT-Creation-Date: 2026-11-26 14:08+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: fr\n" @@ -6219,8 +6219,8 @@ msgstr "" "compte pour toute la journée." #: surveybox/web/templates/question_edit.html -msgid "Minutes" -msgstr "Minutes" +msgid "Duration (min.)" +msgstr "Durée (min)" #: surveybox/web/templates/question_edit.html msgid "Note" diff --git a/surveybox/locale/messages.pot b/surveybox/locale/messages.pot index 212b30d..8bea036 100644 --- a/surveybox/locale/messages.pot +++ b/surveybox/locale/messages.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2026-11-26 10:28+0100\n" +"POT-Creation-Date: 2026-11-26 14:08+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -6375,7 +6375,7 @@ msgid "" msgstr "" #: surveybox/web/templates/question_edit.html:143 -msgid "Minutes" +msgid "Duration (min.)" msgstr "" #: surveybox/web/templates/question_edit.html:144 diff --git a/surveybox/web/static/css/app.css b/surveybox/web/static/css/app.css index 9ec2151..1a1c4f7 100644 --- a/surveybox/web/static/css/app.css +++ b/surveybox/web/static/css/app.css @@ -351,8 +351,16 @@ body.framed .content { padding-top: 16px; } .summary-bars td:not(.num) { width: 50%; } .summary-bars .num { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; } -.date-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--sb-border); } +.date-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr) minmax(0, 0.8fr); gap: 8px 12px; padding: 6px 0; border-bottom: 1px solid var(--sb-border); } .date-row label, .option-row .capacity { display: grid; gap: 2px; font-size: 0.875rem; } +/* Termin-Zeilen: Felder füllen ihre Spalte, damit nichts überlappt; Hinweis über die ganze Breite */ +.date-row label { min-width: 0; } +.date-row input { width: 100%; min-width: 0; max-width: none; } +.date-row .date-note { grid-column: 1 / -1; } +@media (max-width: 480px) { + .date-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } + .date-row .date-day { grid-column: 1 / -1; } +} .option-row .capacity input { max-width: 120px; } .slot { justify-content: flex-start; gap: 8px; flex-wrap: wrap; } diff --git a/surveybox/web/templates/question_edit.html b/surveybox/web/templates/question_edit.html index 8c152cc..e15ccca 100644 --- a/surveybox/web/templates/question_edit.html +++ b/surveybox/web/templates/question_edit.html @@ -138,10 +138,10 @@ {% for o in date_rows + [{}, {}, {}] %}
- + - - + +
{% endfor %}