Skip to content

Commit

Permalink
fix(website): πŸ’„ add responsive design to code block component
Browse files Browse the repository at this point in the history
  • Loading branch information
diecodev committed Jan 14, 2024
1 parent dec43d6 commit bc5f92b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/components/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const CodeBlock = component$<{ code: string }>(({ code }) => {
}, 2000);
}}
>
<pre class="!mb-o border-0 bg-transparent text-[13px]">{code}</pre>
<pre class="!mb-o border-0 bg-transparent text-[12px] whitespace-pre-wrap">{code}</pre>
<button aria-label="Copy code" class={styles.copy}>
{copying.value ? (
<div key="check">
Expand Down

0 comments on commit bc5f92b

Please sign in to comment.