Skip to content

Commit ac25c6b

Browse files
aakshptlhaydenbleaselclaude
authored
Updated Zoom Out Icon SVG (#375)
* UpdatedZoomOutIcon SVG * Refactor ZoomOutIcon SVG structure * Add patch changeset for mermaid zoom-out icon fix Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2ac3c5d commit ac25c6b

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@streamdown/mermaid": patch
3+
---
4+
5+
Fix incorrect zoom-out icon SVG in Mermaid preview plugin.

packages/streamdown/lib/icons.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,16 +211,16 @@ export const ZoomInIcon = (props: IconProps) => (
211211

212212
export const ZoomOutIcon = (props: IconProps) => (
213213
<svg
214-
color="currentColor"
215-
height={16}
216-
strokeLinejoin="round"
217-
viewBox="0 0 16 16"
218-
width={16}
219-
{...props}
214+
color="currentColor"
215+
height={16}
216+
strokeLinejoin="round"
217+
viewBox="0 0 16 16"
218+
width={16}
219+
{...props}
220220
>
221221
<path
222222
clipRule="evenodd"
223-
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"
223+
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"
224224
fill="currentColor"
225225
fillRule="evenodd"
226226
/>

0 commit comments

Comments
 (0)