Browse Source

fix: section with collapsible content jerk issue

version-14
Jannat Patel 3 years ago
parent
commit
ae10160e61
2 changed files with 7 additions and 2 deletions
  1. +4
    -1
      frappe/public/scss/website/page_builder.scss
  2. +3
    -1
      frappe/website/web_template/section_with_collapsible_content/section_with_collapsible_content.html

+ 4
- 1
frappe/public/scss/website/page_builder.scss View File

@@ -486,9 +486,12 @@
}

.collapsible-content {
color: $gray-700;
}

.collapsible-content p {
margin-top: 1rem;
margin-bottom: 0;
color: $gray-700;
}

.section-with-collapsible-content.align-center {


+ 3
- 1
frappe/website/web_template/section_with_collapsible_content/section_with_collapsible_content.html View File

@@ -21,7 +21,9 @@
</svg>
</a>
<div class="collapse collapsible-content from-markdown" id="{{ collapse_id }}">
{{ frappe.utils.md_to_html(item.content) }}
<div>
{{ frappe.utils.md_to_html(item.content) }}
</div>
</div>
</div>
{%- endfor -%}


Loading…
Cancel
Save