From d429ccfc56b5768359ba77b963db7af6b26c3c88 Mon Sep 17 00:00:00 2001 From: Klaas van Schelven Date: Sat, 30 Mar 2024 22:22:33 +0100 Subject: [PATCH] Resolve/mute buttons: on their own line on small screens --- issues/templates/issues/base.html | 21 ++++++++++++--------- theme/static/css/dist/styles.css | 16 ++++++++++++++++ 2 files changed, 28 insertions(+), 9 deletions(-) diff --git a/issues/templates/issues/base.html b/issues/templates/issues/base.html index 70d4684..995f8bf 100644 --- a/issues/templates/issues/base.html +++ b/issues/templates/issues/base.html @@ -3,14 +3,9 @@ {% block title %}{{ issue.title }}{# note: dubious: should perhaps be event.title... #} ยท {{ block.super }}{% endblock %} {% block content %} -
-
-

{{ issue.get_main_exception.type }}

-
{{ issue.get_main_exception.value }}
- {% if parsed_data.request %}
{{ parsed_data.request.method }} {{ parsed_data.request.url }}
{% endif %} -
{% with issue.get_main_exception.stacktrace.frames|last as last_frame %}{% if last_frame.module %}{{ last_frame.module}}{% else %}{{ last_frame.filename }}{% endif %}{% if last_frame.function %} in {{ last_frame.function }}{% endif %}{% endwith %}
-
-
+
+ +
{% csrf_token %} {% if issue.is_resolved %}{# i.e. buttons disabled #} @@ -92,7 +87,15 @@ {% endspaceless %}
-
+
{# top, RHS (buttons) #} + +
+

{{ issue.get_main_exception.type }}

+
{{ issue.get_main_exception.value }}
+ {% if parsed_data.request %}
{{ parsed_data.request.method }} {{ parsed_data.request.url }}
{% endif %} +
{% with issue.get_main_exception.stacktrace.frames|last as last_frame %}{% if last_frame.module %}{{ last_frame.module}}{% else %}{{ last_frame.filename }}{% endif %}{% if last_frame.function %} in {{ last_frame.function }}{% endif %}{% endwith %}
+
{# top, LHS (various texts) #} +
diff --git a/theme/static/css/dist/styles.css b/theme/static/css/dist/styles.css index 84ff812..cb1b220 100644 --- a/theme/static/css/dist/styles.css +++ b/theme/static/css/dist/styles.css @@ -2210,6 +2210,22 @@ span.linenos.special { .lg\:flex { display: flex; } + + .lg\:flex-row { + flex-direction: row; + } + + .lg\:flex-row-reverse { + flex-direction: row-reverse; + } + + .lg\:pb-4 { + padding-bottom: 1rem; + } + + .lg\:pb-0 { + padding-bottom: 0px; + } } .peer:focus ~ .rtl\:peer-focus\:left-auto:where([dir="rtl"], [dir="rtl"] *) {