Skip to content

Commit ef265c9

Browse files
committed
Tailwind migration — codeblock and markdown.
1 parent 4fc47eb commit ef265c9

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const Blockquote = ({ children }: { children: React.ReactNode }) => {
2-
return <div className="border-l-3 border-accent italic pl-2 py-2 mb-2">{children}</div>
2+
return <div className="border-l-[3px] border-accent italic pl-2 py-2 mb-2">{children}</div>
33
}

webview-ui/src/components/ui/markdown/CodeBlock.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,7 @@ export const CodeBlock: FC<CodeBlockProps> = memo(({ language, value, className,
6060
size="icon"
6161
className="absolute top-1 right-1 cursor-pointer bg-black/10"
6262
onClick={onCopy}>
63-
{isCopied ? (
64-
<CheckIcon style={{ width: 12, height: 12 }} />
65-
) : (
66-
<CopyIcon style={{ width: 12, height: 12 }} />
67-
)}
63+
{isCopied ? <CheckIcon className="w-3 h-3" /> : <CopyIcon className="w-3 h-3" />}
6864
</Button>
6965
</div>
7066
)

0 commit comments

Comments
 (0)