Skip to content

Commit

Permalink
🪇 Make isMargin in document outline optional (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanc1 authored Oct 24, 2024
1 parent 1ff56a5 commit 8971790
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/clean-countries-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@myst-theme/site': patch
---

Make margin for outline optional
2 changes: 1 addition & 1 deletion packages/site/src/components/DocumentOutline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export const DocumentOutline = ({
selector?: string;
children?: React.ReactNode;
maxdepth?: number;
isMargin: boolean;
isMargin?: boolean;
}) => {
const { activeId, headings } = useHeaders(selector, maxdepth);
const [open, setOpen] = useState(false);
Expand Down

0 comments on commit 8971790

Please sign in to comment.