Skip to content

Commit

Permalink
fix(nx-dev): Scrollbar should show on CI release page if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
ndcunningham committed May 27, 2024
1 parent 4cbb0f0 commit d34dddd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nx-dev/feature-doc-viewer/src/lib/doc-viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export function DocViewer({
router.asPath.includes('/ci/intro/ci-with-nx') ||
router.asPath.includes('/extending-nx/intro/getting-started') ||
router.asPath.includes('/nx-api/devkit') ||
router.asPath.includes('/reference/glossary');
router.asPath.includes('/reference/glossary') ||
router.asPath.includes('/ci/reference/release-notes');
const ref = useRef<HTMLDivElement | null>(null);

const { metadata, node, treeNode } = renderMarkdown(
Expand Down Expand Up @@ -117,7 +118,7 @@ export function DocViewer({
{!hideTableOfContent && (
<div
className={cx(
'fixed right-[max(2rem,calc(50%-55rem))] top-48 z-20 hidden w-60 overflow-y-auto bg-white text-sm xl:block dark:bg-slate-900'
'fixed right-[max(2rem,calc(50%-55rem))] top-48 z-20 hidden h-full w-60 overflow-y-auto bg-white text-sm xl:block dark:bg-slate-900'
)}
>
<TableOfContents
Expand Down

0 comments on commit d34dddd

Please sign in to comment.