Skip to content

Commit

Permalink
docs(code-preview): enable horizontal scroll (themesberg#804)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoltanszogyenyi authored Jun 9, 2023
1 parent f806ada commit 12b7b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/code-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default function ${titleCaseToUpperCamelCase(title)}() {${
<CopyToClipboardButton isJustCopied={isJustCopied} onClick={() => copyToClipboard(code)} />
</div>
</div>
<pre className={classNames('language-tsx !overflow-hidden', !isExpanded && 'max-h-72')}>
<pre className={classNames('language-tsx !overflow-y-hidden', !isExpanded && 'max-h-72')}>
<code>{code}</code>
</pre>
<CollapseExpandButton isExpanded={isExpanded} onClick={() => setExpanded(!isExpanded)} />
Expand Down

0 comments on commit 12b7b7b

Please sign in to comment.