Skip to content

Commit

Permalink
fix: iframe height for discussions sidebar (#1393)
Browse files Browse the repository at this point in the history
* fix: iframe height for discussions sidebar

* fix: increase adaptation brakepoint
  • Loading branch information
ihor-romaniuk authored Jul 26, 2024
1 parent 7efe8f5 commit 167d51b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.discussions-sidebar-frame {
@media (max-width: -1 + map-get($grid-breakpoints, "xl")) {
max-height: calc(100vh - 65px);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const DiscussionsSidebar = ({ intl }) => {
>
<iframe
src={`${discussionsUrl}?inContextSidebar`}
className="d-flex sticky-top vh-100 w-100 border-0"
className="d-flex sticky-top vh-100 w-100 border-0 discussions-sidebar-frame"
title={intl.formatMessage(messages.discussionsTitle)}
allow="clipboard-write"
loading="lazy"
Expand Down
1 change: 1 addition & 0 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@

// Import component-specific sass files
@import "courseware/course/celebration/CelebrationModal.scss";
@import "courseware/course/sidebar/sidebars/discussions/Discussions.scss";
@import "courseware/course/sidebar/sidebars/notifications/NotificationIcon.scss";
@import "courseware/course/sequence/lock-paywall/LockPaywall.scss";
@import "shared/streak-celebration/StreakCelebrationModal.scss";
Expand Down

0 comments on commit 167d51b

Please sign in to comment.