File tree Expand file tree Collapse file tree 2 files changed +8
-15
lines changed
apps/website/src/components Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export const Highlight = component$(
84
84
) ;
85
85
86
86
return (
87
- < div class = "code-example relative max-h-[31.25rem]" >
87
+ < div class = "code-example relative max-h-[31.25rem] rounded-base " >
88
88
< CodeCopy
89
89
class = { [
90
90
'absolute right-3 top-3 text-white hover:bg-slate-800 hover:text-white' ,
@@ -95,7 +95,7 @@ export const Highlight = component$(
95
95
< div
96
96
{ ...props }
97
97
class = { cn (
98
- 'tab-size max-h-[31.25rem] max-w-full overflow-auto rounded-sm bg-gradient-to-b from-slate-900 to-slate-800 p-6 text-sm' ,
98
+ 'tab-size max-h-[31.25rem] max-w-full overflow-auto rounded-sm bg-gradient-to-b from-slate-900 to-slate-800 p-6 text-sm dark:from-background dark:to-accent/30 ' ,
99
99
props . class ,
100
100
) }
101
101
>
Original file line number Diff line number Diff line change @@ -91,25 +91,18 @@ export const components: Record<string, any> = {
91
91
</ li >
92
92
) ;
93
93
} ) ,
94
- pre : component$ <
95
- PropsOf < 'div' > & {
96
- __rawString__ ?: string ;
97
- }
98
- > ( ( { __rawString__, ...props } ) => {
94
+ pre : component$ < {
95
+ __rawString__ ?: string ;
96
+ } > ( ( { __rawString__ } ) => {
99
97
return (
100
- < div
101
- { ...props }
102
- class = { [
103
- cn ( 'code-example relative mb-6 max-h-[31.25rem] rounded-base' , props . class ) ,
104
- ] }
105
- >
98
+ < div class = "code-example relative mb-6 max-h-[31.25rem] rounded-base" >
106
99
< CodeCopy
107
- class = "absolute right-3 top-3 text-white hover:bg-slate-800 hover: text-white"
100
+ class = "absolute right-3 top-3 text-white hover:text-white"
108
101
code = { __rawString__ }
109
102
/>
110
103
< div
111
104
class = { cn (
112
- 'max-h-[31.25rem] max-w-full overflow-auto rounded-base border bg-gradient-to-b p-6 text-sm' ,
105
+ 'max-h-[31.25rem] max-w-full overflow-y- auto rounded-base border bg-gradient-to-b from-slate-900 to-slate-800 p-6 text-sm dark:from-background dark:to-accent/30 ' ,
113
106
) }
114
107
>
115
108
< pre >
You can’t perform that action at this time.
0 commit comments