layout fix

This commit is contained in:
mst 2024-11-26 15:04:27 +03:00
parent bd57f1834d
commit 87aaca7ae3

View file

@ -1,12 +1,12 @@
<div class="mt-5 mb-sm-2 mb-md-5 col-sm-{% if class %}{{ class }}{% elif cfg.style.infoBoxLayout == 'row' %}10{% else %}8{% endif %} m-auto{% if not class and cfg.style.infoBoxLayout == 'row' %} d-lg-flex justify-content-between gap-2{% endif %}" id="description">
<div>
<div class="mt-5 mb-sm-2 mb-md-5 col-lg-{% if class %}{{ class }}{% elif cfg.style.infoBoxLayout == 'row' %}10{% else %}8{% endif %} m-auto{% if not class and cfg.style.infoBoxLayout == 'row' %} d-lg-flex justify-content-between gap-2{% endif %}" id="description">
<div class="col-lg-6 m-auto">
<h1 class="text-center fw-bold" id="title">{{ cfg.instance.title }}</h1>
{% autoescape off %}
<h2 class="h5 text-center fw-light" id="desc">{{ cfg.instance.description | render_markdown }}</h2>
{% endautoescape %}
</div>
{% if len(cfg.instance.rules) > 0 %}
<div class="m-auto col-sm-{% if rules_class %}{{ rules_class }}{% elif cfg.style.infoBoxLayout == 'row' %}6{% else %}8{% endif %}">
<div class="m-auto col-lg-{% if rules_class %}{{ rules_class }}{% elif cfg.style.infoBoxLayout == 'row' %}5{% else %}8{% endif %}">
<div class="accordion" id="rules-accordion">
<div class="accordion-item">
<h2 class="accordion-header">