Layout v2 template fixes: style blocks and heading levels

- inbox.html, admin_all_mail.html: move <style> block into {% block head %}
  (styles outside Jinja blocks are silently dropped in template inheritance)
- feedback.html, feedback_detail.html, feedback_new.html, user_settings.html:
  replace <h1 class="h4"> with <h2> to match app-wide heading convention

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ivo Oskamp 2026-03-19 16:00:33 +01:00
parent 96e4e8c143
commit 5163ca7b4a
6 changed files with 8 additions and 8 deletions

View File

@ -1,14 +1,14 @@
{% extends "layout/base.html" %}
{% block head %}
<style>
.modal-xxl { max-width: 98vw; }
@media (min-width: 1400px) { .modal-xxl { max-width: 1400px; } }
#msg_body_container_iframe { height: 55vh; }
#msg_objects_container { max-height: 25vh; overflow: auto; }
.filter-card .form-label { font-size: 0.85rem; }
</style>
{% endblock %}
{# Pager macro must be defined before it is used #}
{% macro pager(position, page, total_pages, has_prev, has_next, filter_params) -%}

View File

@ -2,7 +2,7 @@
{% block content %}
<div class="d-flex justify-content-between align-items-center mb-3">
<h1 class="h4 mb-0">Feedback</h1>
<h2 class="mb-0">Feedback</h2>
<a class="btn btn-primary" href="{{ url_for('main.feedback_new') }}">New</a>
</div>

View File

@ -3,7 +3,7 @@
{% block content %}
<div class="d-flex justify-content-between align-items-center mb-3">
<div>
<h1 class="h4 mb-1">{{ item.title }}</h1>
<h2 class="mb-1">{{ item.title }}</h2>
<div class="text-muted" style="font-size: 0.9rem;">
{% if item.item_type == 'bug' %}
<span class="badge text-bg-danger">Bug</span>

View File

@ -2,7 +2,7 @@
{% block content %}
<div class="d-flex justify-content-between align-items-center mb-3">
<h1 class="h4 mb-0">New Feedback</h1>
<h2 class="mb-0">New Feedback</h2>
<a class="btn btn-outline-secondary" href="{{ url_for('main.feedback_page') }}">Back</a>
</div>

View File

@ -1,13 +1,13 @@
{% extends "layout/base.html" %}
{% block head %}
<style>
/* Inbox popup: wider + internal scroll areas */
.modal-xxl { max-width: 98vw; }
@media (min-width: 1400px) { .modal-xxl { max-width: 1400px; } }
#msg_body_container_iframe { height: 55vh; }
#msg_objects_container { max-height: 25vh; overflow: auto; }
</style>
{% endblock %}
{# Pager macro must be defined before it is used #}
{% macro pager(position, page, total_pages, has_prev, has_next) -%}

View File

@ -2,7 +2,7 @@
{% block content %}
<div class="d-flex justify-content-between align-items-center mb-3">
<h1 class="h4 mb-0">User Settings</h1>
<h2 class="mb-0">User Settings</h2>
</div>
<div class="card" style="max-width: 40rem;">