Skip to content

Commit

Permalink
feat: stick discussion sidebar to top
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Adeel Tajamul authored and Muhammad Adeel Tajamul committed Feb 13, 2024
1 parent a18ed8e commit 4661dcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ const DiscussionsNotificationsSidebar = () => {
showTitleBar={false}
showBorder={false}
>
<NotificationTray />
{!hideNotificationbar && <div className="my-1.5" />}
<DiscussionsSidebar />
<div className="sticky-top vh-100">
<NotificationTray />
{!hideNotificationbar && <div className="my-1.5" />}
<DiscussionsSidebar />
</div>
</SidebarBase>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const DiscussionsSidebar = ({ intl }) => {
>
<iframe
src={`${discussionsUrl}?inContextSidebar`}
className="d-flex w-100 h-100 border-0"
className="d-flex sticky-top vh-100 w-100 border-0"
title={intl.formatMessage(messages.discussionsTitle)}
allow="clipboard-write"
loading="lazy"
Expand Down

0 comments on commit 4661dcb

Please sign in to comment.