UI: Training templates fluid video layouts #104435

Merged
Márton Lente merged 13 commits from ui/training-layout-fluid into main 2024-08-23 16:50:27 +02:00
2 changed files with 9 additions and 8 deletions
Showing only changes of commit cd5c36165b - Show all commits

View File

@ -728,6 +728,7 @@ button,
align-items: center align-items: center
display: flex display: flex
height: 100vh height: 100vh
justify-content: center
left: 0 left: 0
margin-bottom: 0 margin-bottom: 0
position: sticky position: sticky

View File

@ -33,16 +33,16 @@
{% include 'common/components/content_locked.html' with background=section.thumbnail_m_url %} {% include 'common/components/content_locked.html' with background=section.thumbnail_m_url %}
{% endif %} {% endif %}
{% else %} {% else %}
<div class="col">
{% if section.is_free or request.user|has_active_subscription %} {% if section.is_free or request.user|has_active_subscription %}
{% if section.thumbnail %} {% if section.thumbnail %}
{% include "common/components/helpers/image_set.html" with alt=section.name classes="img-fluid img-width-100 rounded" img_source=section.thumbnail xsmall_width="600" small_width="800" medium_width="1000" large_width="1200" xlarge_width="1920" %} {% include "common/components/helpers/image_set.html" with alt=section.name classes="img-fluid img-width-100" img_source=section.thumbnail xsmall_width="600" small_width="800" medium_width="1000" large_width="1200" xlarge_width="1920" %}
{% endif %} {% endif %}
{% else %} {% else %}
<div class="col">
{% include 'common/components/content_locked.html' with background=training.picture_header %} {% include 'common/components/content_locked.html' with background=training.picture_header %}
{% endif %}
</div> </div>
{% endif %} {% endif %}
{% endif %}
</div> </div>
<div class="training-group-item training-group-item-content"> <div class="training-group-item training-group-item-content">
<div class="box"> <div class="box">