Skip to content

Commit

Permalink
Insufficient padding in code block component on /templates page
Browse files Browse the repository at this point in the history
  • Loading branch information
Suvankar621 committed Oct 11, 2024
1 parent 0608fee commit 5c1d5c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/www/components/template/codeblock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function CodeBlock(props: any) {
<Highlight theme={darkTheme} code={block} language={language[0].replace(/language-/, "")}>
{({ tokens, getLineProps, getTokenProps }) => {
return (
<pre className="pt-0 pb-5 mt-0 overflow-x-auto leading-7 bg-transparent border-none rounded-none">
<pre className="pt-0 pb-5 mt-0 overflow-x-auto leading-7 bg-transparent border-none rounded-none mr-[1.7vmax]">
{tokens.map((line, i) => {
// if the last line is empty, don't render it
if (i === tokens.length - 1 && line[0].empty === true) {
Expand Down

0 comments on commit 5c1d5c3

Please sign in to comment.