feat: upgrade to tailwindcss v4
This commit is contained in:
parent
e173376319
commit
b7009e387b
31 changed files with 374 additions and 1228 deletions
|
|
@ -13,7 +13,7 @@ export default function Code({ isCopyable, children, className }: CodeProps) {
|
|||
<code
|
||||
className={cn(
|
||||
'bg-headplane-100 dark:bg-headplane-800 px-1 py-0.5 font-mono',
|
||||
'rounded-lg focus-within:outline-none focus-within:ring-2',
|
||||
'rounded-lg focus-within:outline-hidden focus-within:ring-2',
|
||||
isCopyable && 'relative pr-7',
|
||||
className,
|
||||
)}
|
||||
|
|
@ -41,8 +41,8 @@ export default function Code({ isCopyable, children, className }: CodeProps) {
|
|||
}, 1000);
|
||||
}}
|
||||
>
|
||||
<Check className="h-4.5 w-4.5 p-1 hidden data-[copied]:block" />
|
||||
<Copy className="h-4.5 w-4.5 p-1 block data-[copied]:hidden" />
|
||||
<Check className="h-4.5 w-4.5 p-1 hidden data-copied:block" />
|
||||
<Copy className="h-4.5 w-4.5 p-1 block data-copied:hidden" />
|
||||
</button>
|
||||
)}
|
||||
</code>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue