Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
scopsy committed Jan 29, 2025
1 parent 3d936a5 commit 97868e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/dashboard/src/components/primitives/code-block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export function CodeBlock({
className={cn(
'w-full rounded-xl border px-2 py-1',
theme === 'light' ? 'border-neutral-200 bg-white' : 'border-neutral-700 bg-neutral-800',
!title && 'rounded-b-none py-3',
className
)}
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CodeBlock, Language } from '../../primitives/code-block';

export const SnippetEditor = ({ language, value }: { language: Language; value: string }) => {
return <CodeBlock theme="light" className="h-full" language={language} code={value} />;
return <CodeBlock theme="light" className="h-full overflow-auto" language={language} code={value} />;
};

0 comments on commit 97868e3

Please sign in to comment.