Browse Source

Merge pull request #14205 from pateljannat/section-with-collapsable-content-jerk-issue

fix: section with collapsible content jerk issue
version-14
gavin 3 years ago
committed by GitHub
parent
commit
f2ea10a6be
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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