File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
website-v3/src/components Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const Markdown: React.FC = () => {
2929 prose prose-slate dark:prose-invert prose-p:leading-loose
3030 dark:prose-a:text-white
3131 prose-a:font-bold prose-a:underline-offset-[5px] prose-a:decoration-docs-theme prose-a:decoration-2 hover:prose-a:decoration-4 prose-headings:mb-[1rem]
32- prose-pre:m-0
32+ prose-pre:m-0
3333 prose-pre:rounded-none prose-code:rounded
3434 prose-code:border prose-code:bg-gray-50/50 prose-code:px-1.5 prose-code:py-1 prose-code:text-xs prose-code:font-thin prose-code:before:content-[''] prose-code:after:content-[''] prose-code:dark:border-zinc-700 prose-code:dark:bg-zinc-800/50 prose-table:w-auto
3535 max-w-none
Original file line number Diff line number Diff line change @@ -19,14 +19,14 @@ const CodeBlock: React.FC<CodeBlockProps> = props => {
1919 < button
2020 data-copy
2121 data-copy-value = { props . raw }
22- className = "absolute top-2 right-2 rounded bg-[#19191d] px-3 py-1 font-mono text-xs text-white opacity-0 transition hover:bg-black/50 group-hover:opacity-100 data-[copied=true]:[&>span]:hidden "
22+ className = "data-[copied=true]:[&>span]:hidden absolute top-2 right-2 rounded bg-[#19191d] px-3 py-1 font-mono text-xs text-white opacity-0 transition hover:bg-black/50 group-hover:opacity-100"
2323 >
2424 Copy
2525 </ button >
2626 < div
2727 dangerouslySetInnerHTML = { { __html : props . html } }
2828 className = { cx (
29- 'not-prose overflow-hidden border-white/10 text-xs [&>pre>code>.line]:leading-6 [&>pre]:p-3' ,
29+ 'not-prose [&>pre]: overflow-x-auto [&>pre>code>.line]:leading-6 [&>pre]:p-3 overflow-hidden border-white/10 text-xs ' ,
3030 {
3131 'rounded-xl border' : ! props . title ,
3232 'rounded-b-xl dark:border-b dark:border-r dark:border-l' : ! ! props . title ,
You can’t perform that action at this time.
0 commit comments