Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/sidebar/developDocsSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ export function DevelopDocsSidebar({
return toTree(apiNodes);
};
return (
<aside className={styles.sidebar}>
<aside className={`${styles.sidebar} py-3`}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this not just be

Suggested change
<aside className={`${styles.sidebar} py-3`}>
<aside className={`${styles.sidebar} p-3`}>

or does this need to be spread out like this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I simplified it by just moving the padding altogether to the aside but a a horizontal padding of 6 would be too much

<input type="checkbox" id={sidebarToggleId} className="hidden" />
<style>{':root { --sidebar-width: 300px; }'}</style>
<div className="md:flex flex-col items-stretch">
<div className="md:flex flex-col items-stretch px-3">
<div className={styles.toc}>
<ul data-sidebar-tree>
{devDocsMenuItems.map(({root, title}) => (
Expand Down
Loading