updates: change 'px' to 'em' for width

This commit is contained in:
SG
2025-06-13 16:07:09 +03:00
parent 818f3ee37f
commit b5b3de23bb
2 changed files with 21 additions and 22 deletions

View File

@@ -80,7 +80,6 @@
{% block content %} {% block content %}
{% endblock %} {% endblock %}
</div> </div>
<div id="footer" class="container-fluid"> <div id="footer" class="container-fluid">
<div id="footer-data" class="row my-1"> <div id="footer-data" class="row my-1">
{% block footer_includes %} {% block footer_includes %}

View File

@@ -8,8 +8,8 @@
{% block content %} {% block content %}
<div class="row justify-content-start g-4 mb-4 py-4"> <div class="row justify-content-start g-4 mb-4 py-4">
{% for content_item in content_items %} {% for content_item in content_items %}
<div class="col-auto align-items-stretch d-flex mx-2" style="max-width: 400px;"> <div class="col-auto align-items-stretch d-flex mx-2" style="width: 100%; width: 24em;">
<div class="card h-100 px-0 rounded mx-1 my-3" style="width: 100%; width: 350px;"> <div class="card h-100 px-0 rounded mx-1 my-3" style="width: 100%; width: 22em;">
<div class="card-header"> <div class="card-header">
{% if content_item.image_file %} {% if content_item.image_file %}
<img src="{{ parent_path }}static/images/{{ content_item.image_file }}" alt="{{ content_item.title }}" class="card-img-top img-fluid mx-auto d-block object-fit-fill rounded" style="height: 200px; width: auto;"> <img src="{{ parent_path }}static/images/{{ content_item.image_file }}" alt="{{ content_item.title }}" class="card-img-top img-fluid mx-auto d-block object-fit-fill rounded" style="height: 200px; width: auto;">