Skip to content

Commit

Permalink
fix: code block overflow layout
Browse files Browse the repository at this point in the history
  • Loading branch information
m4xshen committed Jan 26, 2025
1 parent ddf761e commit 3053b46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/www/components/code-block-command.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function CodeBlockCommand({
}, [packageManager, tabs])

return (
<div className="relative mt-6 max-h-[650px] overflow-x-auto rounded-xl bg-zinc-950 dark:bg-zinc-900">
<div className="relative mt-6 max-h-[650px] rounded-xl bg-zinc-950 dark:bg-zinc-900">
<Tabs
defaultValue={packageManager}
onValueChange={(value) => {
Expand All @@ -81,7 +81,7 @@ export function CodeBlockCommand({
</div>
{Object.entries(tabs).map(([key, value]) => {
return (
<TabsContent key={key} value={key} className="mt-0">
<TabsContent key={key} value={key} className="mt-0 overflow-x-auto">
<pre className="px-4 py-5">
<code
className="relative font-mono text-sm leading-none"
Expand Down

0 comments on commit 3053b46

Please sign in to comment.