File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed
sparkle/src/components/markdown Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -125,13 +125,12 @@ export function CodeBlock({
125
125
style = { codeStyle }
126
126
language = { languageToUse }
127
127
PreTag = "div"
128
- className = "s-cursor-text"
129
128
>
130
129
{ String ( children ) . replace ( / \n $ / , "" ) }
131
130
</ SyntaxHighlighter >
132
131
</ Suspense >
133
132
) : (
134
- < code className = "s-mx-0.5 s-cursor-text s- rounded-lg s-border s-border-border-dark s-bg-muted s-px-1.5 s-py-1 s-text-amber-600" >
133
+ < code className = "s-mx-0.5 s-rounded-lg s-border s-border-border-dark s-bg-muted s-px-1.5 s-py-1 s-text-amber-600" >
135
134
{ children }
136
135
</ code >
137
136
) ;
Original file line number Diff line number Diff line change @@ -104,14 +104,7 @@ const mermaidStyles = `
104
104
/* Base diagram styles */
105
105
.mermaid {
106
106
background: ${ palette . slate [ 50 ] } ;
107
- cursor: default;
108
107
}
109
-
110
- .mermaid text,
111
- .mermaid .nodeLabel,
112
- .mermaid .edgeLabel,
113
- .mermaid .label {
114
- cursor: text;
115
108
116
109
/* Cluster styles */
117
110
.mermaid .cluster rect {
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ export function ContentBlockWrapper({
101
101
< div className = "s-sticky s-top-0 s-z-[1] s-w-full" >
102
102
< div
103
103
id = "BlockActions"
104
- className = "s-absolute s-right-2 s-top-2 s-z-50 s-flex s-gap -2"
104
+ className = "s-flex s-w-full s-justify-end s-gap-1 s-p -2"
105
105
>
106
106
{ actions && actions }
107
107
{ getContentToDownload && (
@@ -124,7 +124,9 @@ export function ContentBlockWrapper({
124
124
) }
125
125
</ div >
126
126
</ div >
127
- < div className = { cn ( "s-z-0 s-w-full" , innerClassName ) } > { children } </ div >
127
+ < div className = { cn ( "s-z-0 -s-mt-11 s-w-full" , innerClassName ) } >
128
+ { children }
129
+ </ div >
128
130
</ div >
129
131
) ;
130
132
}
You can’t perform that action at this time.
0 commit comments