diff --git a/RELEASE.rst b/RELEASE.rst index 3b149c206b..b16bf5f08f 100644 --- a/RELEASE.rst +++ b/RELEASE.rst @@ -1,6 +1,11 @@ Release Notes ============= +Version 0.55.4 +-------------- + +- fix: fix the learning resource card space issue (#2979) + Version 0.55.3 (Released February 24, 2026) -------------- diff --git a/frontends/main/src/page-components/TiptapEditor/extensions/node/Image/ImageWithCaption.tsx b/frontends/main/src/page-components/TiptapEditor/extensions/node/Image/ImageWithCaption.tsx index e0c58e3f24..9960a95533 100644 --- a/frontends/main/src/page-components/TiptapEditor/extensions/node/Image/ImageWithCaption.tsx +++ b/frontends/main/src/page-components/TiptapEditor/extensions/node/Image/ImageWithCaption.tsx @@ -284,6 +284,7 @@ export function ImageWithCaptionViewer({ src={src} alt={alt} layout={layout} + className="uploaded-image" isLoading={isLoading} onLoad={() => setIsLoading(false)} onError={() => { @@ -439,6 +440,7 @@ export function ImageWithCaption({ src={src} alt={alt || ""} layout={layout} + className="uploaded-image" ref={imgRef} onLoad={() => setIsLoading(false)} onError={() => setIsLoading(false)} diff --git a/frontends/main/src/page-components/TiptapEditor/extensions/node/Image/image-node.scss b/frontends/main/src/page-components/TiptapEditor/extensions/node/Image/image-node.scss index bf5f081705..b77f320d05 100644 --- a/frontends/main/src/page-components/TiptapEditor/extensions/node/Image/image-node.scss +++ b/frontends/main/src/page-components/TiptapEditor/extensions/node/Image/image-node.scss @@ -28,7 +28,8 @@ /* stylelint-disable selector-class-pattern, no-descending-specificity */ .tiptap.ProseMirror { - img { + // Only apply to images from the image upload plugin + .uploaded-image { max-width: 100%; height: auto; display: block; diff --git a/frontends/main/src/page-components/TiptapEditor/extensions/node/LearningResource/LearningResourceNode.tsx b/frontends/main/src/page-components/TiptapEditor/extensions/node/LearningResource/LearningResourceNode.tsx index 7846752fd2..486c3af83e 100644 --- a/frontends/main/src/page-components/TiptapEditor/extensions/node/LearningResource/LearningResourceNode.tsx +++ b/frontends/main/src/page-components/TiptapEditor/extensions/node/LearningResource/LearningResourceNode.tsx @@ -19,12 +19,12 @@ declare module "@tiptap/core" { const NodeWrapper = styled(NodeViewWrapper)({ position: "relative", - marginBottom: "20px", cursor: "pointer", }) const StyledLearningResourceCard = styled(ResourceCard)(({ theme }) => ({ position: "relative", + marginBottom: "20px", ".ProseMirror-selectednode &": { borderColor: theme.custom.colors.red, diff --git a/main/settings.py b/main/settings.py index 7d274e9377..78504c264d 100644 --- a/main/settings.py +++ b/main/settings.py @@ -34,7 +34,7 @@ from main.settings_pluggy import * # noqa: F403 from openapi.settings_spectacular import open_spectacular_settings -VERSION = "0.55.3" +VERSION = "0.55.4" log = logging.getLogger()