Skip to content

Conversation

@PetyaMarkovaBogdanova
Copy link
Contributor

@PetyaMarkovaBogdanova PetyaMarkovaBogdanova commented Jan 8, 2026

This pull request enhances the vertical responsiveness and media adaptation logic for the IllustratedMessage component.

Component logic refactor:

  • Refactored the _applyMedia method in IllustratedMessage.ts to determine the correct media type by considering both the component's height and width, rather than only one dimension. This provides more robust responsiveness across different container shapes and sizes.
  • Simplified the call to _applyMedia in _adjustHeightToFitContainer, removing the heightChange parameter and always evaluating both dimensions for media selection.
  • Fixes: #12673

@ui5-webcomponents-bot
Copy link
Collaborator

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview January 8, 2026 12:42 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IllustratedMessage: component does not resize correctly when the height is being changed

3 participants