From 58d0a91e937696ac173eb2a671de303abba00a5d Mon Sep 17 00:00:00 2001 From: Marcelo Santos <117441129+marcelo-m7@users.noreply.github.com> Date: Wed, 14 Jan 2026 16:53:37 -0300 Subject: [PATCH] Improve responsive layout and content rendering --- assets/scss/common/_custom.scss | 29 ++++++++++++++++++++++++ layouts/course/single.html | 22 +++++++++--------- layouts/topic/single.html | 2 +- layouts/uc/single.html | 22 +++++++++--------- static/js/loaders.js | 40 ++++++++++++++++----------------- 5 files changed, 72 insertions(+), 43 deletions(-) diff --git a/assets/scss/common/_custom.scss b/assets/scss/common/_custom.scss index 2720f163..be73d2c0 100644 --- a/assets/scss/common/_custom.scss +++ b/assets/scss/common/_custom.scss @@ -35,6 +35,35 @@ dl.row { } } +// Improve content responsiveness +.content, +.facodi-rich-content { + overflow-wrap: anywhere; + + img, + svg, + video { + max-width: 100%; + height: auto; + } + + iframe { + max-width: 100%; + width: 100%; + } + + table { + display: block; + width: 100%; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + } + + pre { + overflow-x: auto; + } +} + // Better card spacing and hover effects .card { transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; diff --git a/layouts/course/single.html b/layouts/course/single.html index ee35aab5..03e12e37 100644 --- a/layouts/course/single.html +++ b/layouts/course/single.html @@ -14,7 +14,7 @@
{{ i18n "course_synced_loading" }}
{{ i18n "topic_synced_loading" }}
{{ i18n "uc_synced_loading" }}