fix: profile page fixes and course completion tick

This commit is contained in:
pateljannat
2021-07-15 11:16:01 +05:30
parent ec852fc255
commit 4891be1d8c
15 changed files with 598 additions and 50 deletions

View File

@@ -70,3 +70,13 @@
{% endif %}
</div>
</div>
<script>
frappe.ready(() => {
$(".course-card-title").each((i, element) => {
var title = $(element).text();
var length = $(window).width() <= 375 ? 60 : 65;
var suffix = title.length > length ? "..." : "";
$(element).text(title.substring(0, length) + suffix);
})
})
</script>