Skip to content

Commit

Permalink
left border on highlighted lines
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-dot-js committed Oct 19, 2023
1 parent 0c9134e commit 0da50ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/code-block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ const CodeBlockContent = forwardRef<HTMLPreElement, CodeBlockContentProps>(
return (
<span
key={line + lineNumber}
className={cx("block border-r px-2 text-gray-400", shouldHighlight && "bg-blue-100 text-gray-600")}
className={cx(
"block border-r px-2 text-gray-400",
shouldHighlight && "border-l-4 border-l-blue-200 bg-blue-100 text-gray-600",
)}
>
{lineNumber}
</span>
Expand Down

0 comments on commit 0da50ee

Please sign in to comment.