Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-mermaid-zoom-out-icon.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@streamdown/mermaid": patch
---

Fix incorrect zoom-out icon SVG in Mermaid preview plugin.
14 changes: 7 additions & 7 deletions packages/streamdown/lib/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,16 @@ export const ZoomInIcon = (props: IconProps) => (

export const ZoomOutIcon = (props: IconProps) => (
<svg
color="currentColor"
height={16}
strokeLinejoin="round"
viewBox="0 0 16 16"
width={16}
{...props}
color="currentColor"
height={16}
strokeLinejoin="round"
viewBox="0 0 16 16"
width={16}
{...props}
>
<path
clipRule="evenodd"
d="M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z"
d="M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z"
fill="currentColor"
fillRule="evenodd"
/>
Expand Down