Skip to content
Merged
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
7 changes: 6 additions & 1 deletion src/modules/base/image/ImageEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,18 @@ export const ImageEditor: React.FC<ModuleComponentProps<ImageStoredProps>> = ({
)
}

// Merge the BlurHash backdrop with the node's inline styles carried by
// nodeWrapperProps.style — an explicit `style` prop after the spread would
// otherwise clobber them (even `style={undefined}` wins over the spread),
// making the canvas ignore inline styles the published render honours.
const style = responsive.blurUrl
? ({
...nodeWrapperProps?.style,
backgroundImage: `url(${responsive.blurUrl})`,
backgroundSize: 'cover',
backgroundPosition: 'center',
} as React.CSSProperties)
: undefined
: nodeWrapperProps?.style

return (
<img
Expand Down
Loading