-
Notifications
You must be signed in to change notification settings - Fork 67
fix (posts block): fix image width in horizontal block styles #3649
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
base: develop
Are you sure you want to change the base?
fix (posts block): fix image width in horizontal block styles #3649
Conversation
WalkthroughExpanded image styling logic in the Posts block to support horizontal and horizontal-2 layouts alongside the existing list layout, addressing formatting issues when custom image widths are applied. Removed an unused callback parameter. Changes
Sequence Diagram(s)Image styling application across layout types: sequenceDiagram
participant User
participant Block as Posts Block
participant Style as Image Styling
User->>Block: Set image width (e.g., 300px)
activate Block
alt List Layout (original)
Block->>Style: Apply width rules
activate Style
Style->>Style: Determine style type (width vs flexBasis)
Style-->>Block: Style applied correctly
deactivate Style
else Horizontal/Horizontal-2 Layouts (new)
Note over Block,Style: Now supported with same logic
Block->>Style: Apply width rules
activate Style
Style->>Style: Determine style type (width vs flexBasis)
Style-->>Block: Style applied correctly
deactivate Style
end
deactivate Block
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
🔇 Additional comments (2)
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 |
🤖 Pull request artifacts
|
fixes #3554
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.