made it syntaxhighlighter to reproduce the bug
This commit is contained in:
parent
05d53c5428
commit
f1455445d1
2 changed files with 5 additions and 3 deletions
|
|
@ -192,11 +192,13 @@ export default function CodeTabsComponent({
|
||||||
dangerouslySetInnerHTML={{ __html: tab.description }}
|
dangerouslySetInnerHTML={{ __html: tab.description }}
|
||||||
></div>
|
></div>
|
||||||
)}
|
)}
|
||||||
<code
|
<SyntaxHighlighter
|
||||||
|
language={tab.language}
|
||||||
|
style={oneDark}
|
||||||
className="mt-0 h-full overflow-auto custom-scroll rounded-sm text-left"
|
className="mt-0 h-full overflow-auto custom-scroll rounded-sm text-left"
|
||||||
>
|
>
|
||||||
{tab.code}
|
{tab.code}
|
||||||
</code>
|
</SyntaxHighlighter>
|
||||||
</div>
|
</div>
|
||||||
) : idx === 4 ? (
|
) : idx === 4 ? (
|
||||||
<>
|
<>
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ const DialogContent = React.forwardRef<
|
||||||
<DialogPrimitive.Content
|
<DialogPrimitive.Content
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className={cn(
|
className={cn(
|
||||||
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",
|
"flex flex-col fixed left-[50%] top-[50%] z-50 w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
{...props}
|
{...props}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue