-
-
Notifications
You must be signed in to change notification settings - Fork 80
Added cropped image as minimal image in CTA Card #1453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis pull request introduces a standardization of image handling across various node renderer modules by replacing instances of Possibly related PRs
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
packages/kg-default-nodes/lib/nodes/call-to-action/calltoaction-renderer.jsOops! Something went wrong! :( ESLint: 8.57.0 Error: Failed to load parser '@babel/eslint-parser' declared in 'packages/kg-default-nodes/.eslintrc.js': Cannot find module '@babel/eslint-parser'
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1453 +/- ##
==========================================
- Coverage 90.90% 90.86% -0.04%
==========================================
Files 187 187
Lines 17381 17517 +136
Branches 1929 1953 +24
==========================================
+ Hits 15800 15917 +117
- Misses 1572 1591 +19
Partials 9 9 ☔ View full report in Codecov by Sentry. |
ref https://linear.app/ghost/issue/PLG-361/fix-image-distortion-quirk-in-outlook
emailCTATemplateto handle cropped images (256x256) for the minimal layout in Call to Action (CTA) cards when rendering emails.resizeImagetogetImageDimensionsacross gallery, image, product, and CTA renderers for consistent dimension handling. This is to make it clearer that this function doesn't resize images, but rather just get dimensions and sizes it without breaking the aspect ratio.