Skip to content

Commit

Permalink
fix: sidebar needs to stick to the screen properly
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Sep 6, 2024
1 parent d5612a2 commit 478216f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/library-authoring/LibraryAuthoringPage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@
min-width: 300px;
max-width: map-get($grid-breakpoints, "sm");
z-index: 1001; // to appear over header
position: sticky;
top: 0;
right: 0;
height: 100vh;
overflow-y: auto;
}
4 changes: 2 additions & 2 deletions src/library-authoring/LibraryAuthoringPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ const LibraryAuthoringPage = () => {
};

return (
<div className="d-flex overflow-auto">
<div className="flex-grow-1 align-content-center">
<div className="d-flex">
<div className="flex-grow-1">
<Header
number={libraryData.slug}
title={libraryData.title}
Expand Down

0 comments on commit 478216f

Please sign in to comment.