Skip to content
Permalink
Browse files

[IMP] website_slides: Add margin to categories

This commit adds some margin to the categories in frontend
for courses of type training.

The margin was needed to avoid having uncategorized slides
being too close to the first category.

LINKS:

TaskID: 2090927
PR: #39086
  • Loading branch information
qmo-odoo committed Dec 30, 2019
1 parent e8d1e0e commit 6cd80c9d1a41e9f631e1f03bd85c71a73ecdaa1d
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/website_slides/views/website_slides_templates_course.xml
@@ -357,7 +357,7 @@

<li t-if="category['total_slides'] or channel.can_publish" t-att-class="'o_wslides_slide_list_category o_wslides_js_list_item mb-2' if category_id else 'mt-4'" t-att-data-slide-id="category_id" t-att-data-category-id="category_id">
<div t-att-data-category-id="category_id"
t-att-class="'o_wslides_slide_list_category_header position-relative d-flex justify-content-between align-items-center %s' % ('o_wslides_js_category bg-white shadow-sm border-bottom-0' if category_id and channel.can_upload else 'border-0 py-1')">
t-att-class="'o_wslides_slide_list_category_header position-relative d-flex justify-content-between align-items-center mt8 %s' % ('o_wslides_js_category bg-white shadow-sm border-bottom-0' if category_id and channel.can_upload else 'border-0 py-1')">
<div t-att-class="'d-flex align-items-center pl-3 %s' % ('o_wslides_slides_list_drag' if channel.can_publish else '')">
<div t-if="channel.can_publish and category_id" class="o_wslides_slides_list_drag py-2 pr-3">
<i class="fa fa-bars"/>

0 comments on commit 6cd80c9

Please sign in to comment.
You can’t perform that action at this time.