Skip to content

Commit

Permalink
fix(ImageNode.tsx): change image fit property value from "cover" to "…
Browse files Browse the repository at this point in the history
…fill" for better image display

The fit property value is updated from "cover" to "fill" to improve the display of images, ensuring they fill the designated area completely.
issue #957
  • Loading branch information
ktun95 committed Jan 27, 2025
1 parent 02fee29 commit 6ad2e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/image-plugin/src/ImageNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class ImageNode extends DecoratorNode<JSX.Element> {
alt={this.__alt}
initialWidth={this.__width}
initialHeight={this.__height}
fit="cover"
fit="fill"
easing="cubic-bezier(0.7, 0, 0.6, 1)"
duration={2000}
/>
Expand Down

0 comments on commit 6ad2e9c

Please sign in to comment.