kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/715/head
rodzic
591a5d65c3
commit
9379b17bf6
|
@ -76,7 +76,7 @@ export function CodeBlock({
|
||||||
code,
|
code,
|
||||||
lang,
|
lang,
|
||||||
theme,
|
theme,
|
||||||
className: 'w-full text-wrap p-4 text-sm'
|
className: 'w-full text-wrap p-4 text-sm rounded-sm'
|
||||||
}).then(setNodes)
|
}).then(setNodes)
|
||||||
}, [code, lang, theme])
|
}, [code, lang, theme])
|
||||||
|
|
||||||
|
@ -122,8 +122,8 @@ export function CodeBlock({
|
||||||
<Button
|
<Button
|
||||||
variant='outline'
|
variant='outline'
|
||||||
className={cn(
|
className={cn(
|
||||||
'absolute right-4 px-2.5! opacity-0 group-hover:opacity-100 group-hover:duration-0 transition-opacity duration-150',
|
'absolute right-2 px-2.5! opacity-0 group-hover:opacity-100 group-hover:duration-0 transition-opacity duration-150',
|
||||||
numNewLines <= 1 ? 'top-[50%] translate-y-[-50%]' : 'top-4'
|
numNewLines <= 1 ? 'top-[50%] translate-y-[-50%]' : 'top-2'
|
||||||
)}
|
)}
|
||||||
onClick={onCopy}
|
onClick={onCopy}
|
||||||
>
|
>
|
||||||
|
|
|
@ -140,7 +140,7 @@ export function ExampleUsage() {
|
||||||
<TabsTrigger
|
<TabsTrigger
|
||||||
key={mcpClientTarget}
|
key={mcpClientTarget}
|
||||||
value={mcpClientTarget}
|
value={mcpClientTarget}
|
||||||
className='cursor-pointer'
|
className='cursor-pointer text-xs!'
|
||||||
>
|
>
|
||||||
{mcpClientTargetLabels[mcpClientTarget]}
|
{mcpClientTargetLabels[mcpClientTarget]}
|
||||||
</TabsTrigger>
|
</TabsTrigger>
|
||||||
|
@ -208,7 +208,7 @@ export function ExampleUsage() {
|
||||||
<TabsTrigger
|
<TabsTrigger
|
||||||
key={framework}
|
key={framework}
|
||||||
value={framework}
|
value={framework}
|
||||||
className='cursor-pointer'
|
className='cursor-pointer text-xs!'
|
||||||
>
|
>
|
||||||
{pyFrameworkTargetLabels[framework]}
|
{pyFrameworkTargetLabels[framework]}
|
||||||
</TabsTrigger>
|
</TabsTrigger>
|
||||||
|
@ -240,7 +240,7 @@ export function ExampleUsage() {
|
||||||
<TabsTrigger
|
<TabsTrigger
|
||||||
key={httpTarget}
|
key={httpTarget}
|
||||||
value={httpTarget}
|
value={httpTarget}
|
||||||
className='cursor-pointer'
|
className='cursor-pointer text-xs!'
|
||||||
>
|
>
|
||||||
{httpTargetLabels[httpTarget]}
|
{httpTargetLabels[httpTarget]}
|
||||||
</TabsTrigger>
|
</TabsTrigger>
|
||||||
|
|
Ładowanie…
Reference in New Issue