Skip to content

Commit 4f284bb

Browse files
fix(web): displaying placeholder image (#725)
# Summary This PR fixes displaying broken image placeholder. ## Test Plan 1. Run example app 2. insert image with wrong url 3. image should be displayed properly ## Screenshots / Videos Before: <img width="245" height="148" alt="image" src="https://github.com/user-attachments/assets/3a90251a-175f-4ccb-a6f8-95829e373348" /> After: <img width="241" height="151" alt="image" src="https://github.com/user-attachments/assets/4d10ae68-8e0f-4178-9683-a83335a791a8" /> ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | ❌ | | Android | ❌ | | Web | ✅ | ## Checklist - [X] E2E tests are passing - [ ] Required E2E tests have been added (if applicable)
1 parent 982c0ca commit 4f284bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/web/formats/EnrichedImageNodeView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function BrokenImageGlyph() {
1111
viewBox="0 0 960 960"
1212
width="100%"
1313
height="100%"
14-
preserveAspectRatio="none"
14+
preserveAspectRatio="xMidYMid meet"
1515
aria-hidden
1616
focusable="false"
1717
className="eti-inline-image-broken-glyph"

0 commit comments

Comments
 (0)