fix(composer): keep resized image dimensions in sent messages - #13482
fix(composer): keep resized image dimensions in sent messages#13482kesselb wants to merge 1 commit into
Conversation
|
/backport to stable5.11 |
da62feb to
1b6d1ed
Compare
|
@coderabbitai please review 🙈 |
|
✅ Action performedReview finished.
|
📝 WalkthroughWalkthroughChangesThe change adds Image dimension downcasting
Estimated code review effort: 3 (Moderate) | ~20 minutes Mergeability Score: ⚪ Minimal · up to The image-dimension change is localized and introduces no actionable runtime or product risk; only a minor SPDX header-format correction remains. Sequence Diagram(s)sequenceDiagram
participant TextEditor
participant CKEditor
participant ImageDowncastPlugin
participant HTMLOutput
TextEditor->>CKEditor: configure HTML mode with pixel resizing
CKEditor->>ImageDowncastPlugin: downcast image figure
ImageDowncastPlugin->>HTMLOutput: set pixel width and remove height
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 8cc74691-1941-495c-a91c-630cc1e0da99
📒 Files selected for processing (4)
src/ckeditor/image/ImageDowncastPlugin.tssrc/components/TextEditor.vuesrc/tests/unit/ckeditor/image/ImageDowncastPlugin.spec.jssrc/tests/unit/components/TextEditor.spec.js
| /** | ||
| * SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors | ||
| * SPDX-License-Identifier: AGPL-3.0-or-later | ||
| */ |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Use the required SPDX block-comment format in both new files. Each header starts with /**, but the required format starts with /*.
src/ckeditor/image/ImageDowncastPlugin.ts#L1-L4: change the opening delimiter from/**to/*.src/tests/unit/ckeditor/image/ImageDowncastPlugin.spec.js#L1-L4: change the opening delimiter from/**to/*.
As per coding guidelines, “Header format: /* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */”.
📍 Affects 2 files
src/ckeditor/image/ImageDowncastPlugin.ts#L1-L4(this comment)src/tests/unit/ckeditor/image/ImageDowncastPlugin.spec.js#L1-L4
Source: Coding guidelines
Assisted-by: ClaudeCode:claude-opus-5 Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
bef9fe4 to
c6ea817
Compare
Summary
Fix #9290
STR:
Main:
Mail (and also other clients) show the image with the original dimension
Here:
The image is shown with the resized dimension
🤖 AI (if applicable)
Summary by CodeRabbit
New Features
Tests