[FIX] website_slides: display courses page with single course
Before this commit if you had a single course and tried to open courses page on website, course would stretch and fill in whole page. it is tied to a bootstrap lib update. On bootstrap 4 col-xx-x has max-width attribute and because of that it wasn't a problem before. Now bootstrap 5 uses normal width attribute and flex-grow class just ignores it. This commit fixes that so that course behaves similar to how it was in previous versions. Task-3128895 closes odoo/odoo#110167 X-original-commit: 3171260cc1458e0789268c1425d332d4082743f9 Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
This commit is contained in:
committed by
Aurélien Warnon
parent
c84618b8bd
commit
8144649fe5
@@ -118,7 +118,7 @@
|
||||
</div>
|
||||
<div class="row mx-n2 mt8">
|
||||
<t t-foreach="channels_my[:3]" t-as="channel">
|
||||
<div class="col-md-4 col-sm-6 px-2 col-xs-12 d-flex flex-grow-1">
|
||||
<div class="col-md-4 col-sm-6 px-2 col-xs-12 d-flex">
|
||||
<t t-call="website_slides.course_card"/>
|
||||
</div>
|
||||
</t>
|
||||
@@ -136,7 +136,7 @@
|
||||
</div>
|
||||
<div class="row mx-n2 mt8">
|
||||
<t t-foreach="channels_popular[:3]" t-as="channel">
|
||||
<div class="col-md-4 col-sm-6 px-2 col-xs-12 d-flex flex-grow-1">
|
||||
<div class="col-md-4 col-sm-6 px-2 col-xs-12 d-flex">
|
||||
<t t-call="website_slides.course_card"/>
|
||||
</div>
|
||||
</t>
|
||||
@@ -153,7 +153,7 @@
|
||||
</div>
|
||||
<div class="row mx-n2 mt8">
|
||||
<t t-foreach="channels_newest[:3]" t-as="channel">
|
||||
<div class="col-md-4 col-sm-6 px-2 col-xs-12 d-flex flex-grow-1">
|
||||
<div class="col-md-4 col-sm-6 px-2 col-xs-12 d-flex">
|
||||
<t t-call="website_slides.course_card"/>
|
||||
</div>
|
||||
</t>
|
||||
@@ -336,7 +336,7 @@
|
||||
<t t-if="channel.partner_has_new_content" t-call="website_slides.course_card_information"/>
|
||||
</div>
|
||||
</a>
|
||||
<div class="card-body d-flex flex-column p-3">
|
||||
<div class="card-body p-3">
|
||||
<a class="card-title h5 mb-2 o_wslides_desc_truncate_2" t-attf-href="/slides/#{slug(channel)}" t-field="channel.name"/>
|
||||
<span t-if="not channel.is_published" class="badge text-bg-danger p-1">Unpublished</span>
|
||||
<div class="card-text d-flex flex-column flex-grow-1 mt-1">
|
||||
|
||||
Reference in New Issue
Block a user