Skip to content

Commit 8071805

Browse files
committed
remove spacing
1 parent e707a17 commit 8071805

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

packages/fern-docs/components/src/sidebar/nodes/SidebarVariantedNode.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,17 +148,10 @@ export function SidebarVariantedNode({ node, depth, renderOptions, lang }: Sideb
148148

149149
{/* Render the selected variant's children */}
150150
<ul className="fern-sidebar-group mt-2">
151-
{currentVariant.children.map((child, index) => {
152-
// VariantChild can be sidebar-level or section-level items
153-
// We need to determine if this should be rendered as a root child or navigation child
154-
// Group-level items (sections, sidebarGroups, apiReferences) get spacing; individual items don't
155-
const isGroupLevel =
156-
child.type === "sidebarGroup" || child.type === "section" || child.type === "apiReference";
157-
const groupSpacing = isGroupLevel && index > 0 ? "mt-6" : "";
158-
151+
{currentVariant.children.map((child) => {
159152
if (child.type === "sidebarGroup") {
160153
return (
161-
<li key={child.id} className={groupSpacing}>
154+
<li key={child.id}>
162155
<SidebarRootChild node={child} renderOptions={renderOptions} lang={lang} />
163156
</li>
164157
);
@@ -167,7 +160,7 @@ export function SidebarVariantedNode({ node, depth, renderOptions, lang }: Sideb
167160
// All other types (sections, pages, links, etc.) go through SidebarNavigationChild
168161
// This ensures sections get collapse functionality via SidebarSectionNode
169162
return (
170-
<li key={child.id} className={groupSpacing}>
163+
<li key={child.id}>
171164
<SidebarNavigationChild
172165
node={child}
173166
depth={depth + 1}

0 commit comments

Comments
 (0)