From 7c1c0d3a91f003df167a506a181b6250cfb8f208 Mon Sep 17 00:00:00 2001 From: Ihor Romaniuk Date: Thu, 8 Aug 2024 21:50:33 +0200 Subject: [PATCH] fix: iframe height for discussions sidebar (#1392) * 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 | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) 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 3e98d465e1..5fcee1e1ae 100644 --- a/src/courseware/course/sidebar/sidebars/discussions/DiscussionsSidebar.jsx +++ b/src/courseware/course/sidebar/sidebars/discussions/DiscussionsSidebar.jsx @@ -32,7 +32,7 @@ const DiscussionsSidebar = ({ intl }) => { >