diff --git a/src/elements/Image/Image.slate.stories.tsx b/src/elements/Image/Image.slate.stories.tsx
index 3621193..1acb265 100644
--- a/src/elements/Image/Image.slate.stories.tsx
+++ b/src/elements/Image/Image.slate.stories.tsx
@@ -123,6 +123,39 @@ export const Width100: Story = () => (
/>
);
+/**
+ * @see https://linear.app/prezly/issue/CARE-2063/image-resized-in-published-story-different-to-editor-option#comment-ee5bbe02
+ */
+export const Width100SmallImage: Story = () => (
+
+);
+
export const Width45: Story = () => (
> = {
@@ -32,14 +37,21 @@ const NEW_TAB_ATTRIBUTES: Partial> = {
export function Image({ children, className, node, onDownload, onPreviewOpen, ...props }: Props) {
const { file, href, align, layout } = node;
+
const isNewTab = node.new_tab ?? true;
+ const title = stringifyNode(node).trim();
+ const containerStyle = getContainerStyle(node);
+
const [isPreviewOpen, setIsPreviewOpen] = useState(false);
// eslint-disable-next-line react-hooks/exhaustive-deps
const image = useMemo(() => UploadcareImage.createFromPrezlyStoragePayload(file), [file.uuid]);
- const containerStyle = getContainerStyle(node);
- const handleRolloverClick = () => setIsPreviewOpen(true);
- const handleImagePreviewClose = () => setIsPreviewOpen(false);
- const title = stringifyNode(node).trim();
+
+ function handleRolloverClick() {
+ setIsPreviewOpen(true);
+ }
+ function handleImagePreviewClose() {
+ setIsPreviewOpen(false);
+ }
return (