From 7ff00fa830dbfacb8fd7dc23d268eaed6d5eb3e1 Mon Sep 17 00:00:00 2001 From: Eugene Dyudyunov Date: Fri, 9 Feb 2024 18:04:50 +0200 Subject: [PATCH] fix: correct rtl for handouts --- src/course-home/outline-tab/LmsHtmlFragment.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/course-home/outline-tab/LmsHtmlFragment.jsx b/src/course-home/outline-tab/LmsHtmlFragment.jsx index 19166355..a07c0654 100644 --- a/src/course-home/outline-tab/LmsHtmlFragment.jsx +++ b/src/course-home/outline-tab/LmsHtmlFragment.jsx @@ -9,8 +9,9 @@ const LmsHtmlFragment = ({ title, ...rest }) => { + const direction = document.documentElement?.getAttribute('dir') || 'ltr'; const wholePage = ` - +