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 = () => {
29
29
prose prose-slate dark:prose-invert prose-p:leading-loose
30
30
dark:prose-a:text-white
31
31
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
33
33
prose-pre:rounded-none prose-code:rounded
34
34
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
35
35
max-w-none
Original file line number Diff line number Diff line change @@ -19,14 +19,14 @@ const CodeBlock: React.FC<CodeBlockProps> = props => {
19
19
< button
20
20
data-copy
21
21
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"
23
23
>
24
24
Copy
25
25
</ button >
26
26
< div
27
27
dangerouslySetInnerHTML = { { __html : props . html } }
28
28
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 ' ,
30
30
{
31
31
'rounded-xl border' : ! props . title ,
32
32
'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