File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ export const components: MDXComponents = {
2020 ...props
2121 } : React . HTMLAttributes < HTMLPreElement > & { __rawcode__ ?: string ; __withmeta__ ?: string } ) => {
2222 return (
23- < >
23+ < div className = "relative" >
2424 < pre
2525 className = { cn (
26- 'relative mb-4 mt-6 max-h-[650px] overflow-x-auto rounded-lg bg-[#262626] p-0' ,
26+ 'relative my-2 max-h-[650px] overflow-x-auto rounded-lg bg-[#262626] p-0' ,
2727 className
2828 ) }
2929 { ...props }
@@ -38,7 +38,7 @@ export const components: MDXComponents = {
3838 ) }
3939 />
4040 ) }
41- </ >
41+ </ div >
4242 )
4343 } ,
4444 code : ( {
@@ -54,7 +54,7 @@ export const components: MDXComponents = {
5454 < >
5555 < code
5656 className = { cn (
57- 'relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm before:hidden after:hidden' ,
57+ 'rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm before:hidden after:hidden' ,
5858 // When pre is parent, these are non-inline code blocks
5959 '[pre_&]:bg-transparent [pre_&]:p-4 ' ,
6060 className
Original file line number Diff line number Diff line change 1- [data-rehype-pretty-code-figure ] {
1+ figure [data-rehype-pretty-code-fragment ] {
22 @apply relative;
33}
44
5- [data-rehype-pretty-code-figure ] code {
5+ [data-rehype-pretty-code-fragment ] code {
66 @apply grid min-w-full break-words rounded-none border-0 bg-transparent p-0;
77 counter-reset : line;
88 box-decoration-break : clone;
99}
1010
11- [data-rehype-pretty-code-figure ] .line {
11+ [data-rehype-pretty-code-fragment ] .line {
1212 @apply inline-block min-h-[1rem ] w-full px-4 py-0.5;
1313}
1414
15- [data-rehype-pretty-code-figure ] [data-line-numbers ] .line {
15+ [data-rehype-pretty-code-fragment ] [data-line-numbers ] .line {
1616 @apply px-2;
1717}
1818
19- [data-rehype-pretty-code-figure ] [data-line-numbers ] > .line ::before {
19+ [data-rehype-pretty-code-fragment ] [data-line-numbers ] > .line ::before {
2020 @apply text-xs text-muted-foreground/40;
2121 counter-increment : line;
2222 content : counter (line);
2626 text-align : right;
2727}
2828
29- [data-rehype-pretty-code-figure ] .line--highlighted {
29+ [data-rehype-pretty-code-fragment ] .line--highlighted {
3030 @apply bg-muted;
3131}
3232
33- [data-rehype-pretty-code-figure ] .line-highlighted span {
33+ [data-rehype-pretty-code-fragment ] .line-highlighted span {
3434 @apply relative;
3535}
3636
37- [data-rehype-pretty-code-figure ] .word--highlighted {
37+ [data-rehype-pretty-code-fragment ] .word--highlighted {
3838 @apply rounded-md border border-muted bg-muted p-1;
3939}
4040
41- .dark [data-rehype-pretty-code-figure ] .word--highlighted {
41+ .dark [data-rehype-pretty-code-fragment ] .word--highlighted {
4242 @apply bg-zinc-900;
4343}
4444
You can’t perform that action at this time.
0 commit comments