From 167d51b5969c911dfb55c0671a66788a3a6c0146 Mon Sep 17 00:00:00 2001 From: Ihor Romaniuk Date: Fri, 26 Jul 2024 16:57:40 +0200 Subject: [PATCH] fix: iframe height for discussions sidebar (#1393) * fix: iframe height for discussions sidebar * fix: increase adaptation brakepoint --- .../course/sidebar/sidebars/discussions/Discussions.scss | 5 +++++ .../sidebar/sidebars/discussions/DiscussionsSidebar.jsx | 2 +- src/index.scss | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/courseware/course/sidebar/sidebars/discussions/Discussions.scss diff --git a/src/courseware/course/sidebar/sidebars/discussions/Discussions.scss b/src/courseware/course/sidebar/sidebars/discussions/Discussions.scss new file mode 100644 index 0000000000..fe94248b26 --- /dev/null +++ b/src/courseware/course/sidebar/sidebars/discussions/Discussions.scss @@ -0,0 +1,5 @@ +.discussions-sidebar-frame { + @media (max-width: -1 + map-get($grid-breakpoints, "xl")) { + max-height: calc(100vh - 65px); + } +} diff --git a/src/courseware/course/sidebar/sidebars/discussions/DiscussionsSidebar.jsx b/src/courseware/course/sidebar/sidebars/discussions/DiscussionsSidebar.jsx index 13bb38e719..5cc3637dc3 100644 --- a/src/courseware/course/sidebar/sidebars/discussions/DiscussionsSidebar.jsx +++ b/src/courseware/course/sidebar/sidebars/discussions/DiscussionsSidebar.jsx @@ -38,7 +38,7 @@ const DiscussionsSidebar = ({ intl }) => { >