Skip to content

Commit 2a46234

Browse files
committed
fix: fix svg icon line break issue in nextjs. #33
1 parent 1fde824 commit 2a46234

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

core/src/arrow/TriangleArrow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function TriangleArrow(props: TriangleArrowProps) {
88
height: '1em',
99
width: '1em',
1010
userSelect: 'none',
11-
display: 'flex',
11+
display: 'inline-flex',
1212
...style,
1313
};
1414
return (

core/src/comps/Copied.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export const Copied = <T extends object, K extends TagType>(props: CopiedProps<T
5353
.catch((error) => {});
5454
};
5555
const svgProps: React.SVGProps<SVGSVGElement> = {
56+
display: 'inline-flex',
5657
fill: copied ? 'var(--w-rjv-copied-success-color, #28a745)' : 'var(--w-rjv-copied-color, currentColor)',
5758
onClick: click,
5859
};

0 commit comments

Comments
 (0)