Skip to content

Commit 14fc012

Browse files
committed
fix
1 parent fbac4e8 commit 14fc012

File tree

1 file changed

+6
-4
lines changed
  • apify-docs-theme/src/theme/DocItemContent

1 file changed

+6
-4
lines changed

apify-docs-theme/src/theme/DocItemContent/index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,12 @@ export default function DocItemContent({ children }) {
6666

6767
return (
6868
<div className={clsx(ThemeClassNames.docs.docMarkdown, 'markdown')}>
69-
<div className={styles.docItemContent}>
70-
{syntheticTitle && <Heading as="h1">{syntheticTitle}</Heading>}
71-
{shouldShowLLMButtons && <LLMButtons />}
72-
</div>
69+
{(syntheticTitle || shouldShowLLMButtons) && (
70+
<div className={styles.docItemContent}>
71+
{syntheticTitle && <Heading as="h1">{syntheticTitle}</Heading>}
72+
{shouldShowLLMButtons && <LLMButtons />}
73+
</div>
74+
)}
7375
<MDXContent>{children}</MDXContent>
7476
</div>
7577
);

0 commit comments

Comments
 (0)