Skip to content

Commit

Permalink
revert: markdown codeblock scrollbar-thin
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlitgrace committed Oct 5, 2024
1 parent e4e70fc commit a094313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Markdown = ({ markdown }: { markdown: string }) => {
</h${depth}>`;
},
code({ text, lang }) {
return `<pre><div class='flex items-center justify-between pb-3 text-xs'><span>${lang}</span><button type='button' class='copy-code-btn'>Copy</button></div><div class='flex-1 overflow-x-scroll'><code>${text}</code></div></pre>`;
return `<pre><div class='flex items-center justify-between pb-3 text-xs'><span>${lang}</span><button type='button' class='copy-code-btn'>Copy</button></div><div class='flex-1 overflow-x-scroll scrollbar-thin'><code>${text}</code></div></pre>`;
},
link(args) {
const link = marked.Renderer.prototype.link.call(this, args);
Expand Down

0 comments on commit a094313

Please sign in to comment.