Skip to content

Commit

Permalink
h/w edits
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-defi committed Nov 19, 2024
1 parent 4979d03 commit 4efe7ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/docs/components/landing/ComponentPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function ComponentPreview() {
const [copiedIndex, setCopiedIndex] = useState<number | null>(null);
const [activeTab, setActiveTab] = useState(0);
const [activeSubTab, setActiveSubTab] = useState<'preview' | 'code'>(
'preview'
'preview',
);
const { theme } = useTheme();

Expand Down Expand Up @@ -186,7 +186,7 @@ function PreviewContainer({

useEffect(() => {
getHighlightedCode({ code: components[activeTab].code, theme }).then(
setHighlightedCode
setHighlightedCode,
);
}, [activeTab, theme]);

Expand Down Expand Up @@ -230,7 +230,7 @@ function PreviewContainer({
activeSubTab === 'preview' ? 'flex' : 'hidden'
} h-[500px] w-full items-center justify-center md:h-[600px]`}
>
<div className="max-h-full max-w-full object-contain">
<div className="min-h-0 min-w-0 flex-shrink">
<ActiveComponent />
</div>
</div>
Expand Down

0 comments on commit 4efe7ce

Please sign in to comment.