Skip to content

Commit 83cbe4d

Browse files
authored
fix(widgets): avoid invalid timeline svg width (#8375)
1 parent 63100a2 commit 83cbe4d

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hyperlane-xyz/widgets': patch
3+
---
4+
5+
Fixed `MessageTimeline` rendering invalid `width="auto"` on SVG chevrons, which could break consumers on newer React/browser combinations.

typescript/widgets/src/messages/MessageTimeline.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,8 @@ function Chevron({
283283
<WideChevronIcon
284284
direction="e"
285285
height="100%"
286-
width="auto"
287286
color={color}
288-
style={{ display: 'block' }}
287+
style={{ display: 'block', width: 'auto' }}
289288
/>
290289
</div>
291290
);

0 commit comments

Comments
 (0)