-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Correct height for media gallery images #28048
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
Correct height for media gallery images #28048
Conversation
Hi @Nazar65. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Nazar65 , thanks for the pull request! Please see my comment
<div | ||
data-row="file" | ||
class="filecnt" | ||
id="<?= $block->escapeHtmlAttr($block->getFileId($file)) ?>" | ||
data-size="<?= $block->escapeHtmlAttr($file->getSize()) ?>" | ||
data-mime-type="<?= $block->escapeHtmlAttr($file->getMimeType()) ?>" | ||
> | ||
<p class="nm" style="height:<?= $block->escapeHtmlAttr($_height) ?>px;"> | ||
<p class="nm" style="min-height: 72px;"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please avoid the inline css
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also use height
attribute if there is no other option.
Hi @sivaschenko, thank you for the review.
|
The automated test coverage is not applicable as this is a style change |
✔️ QA Passed |
Failed functional tests not related to the changes in this PR |
Hi @Nazar65, thank you for your contribution! |
Description (*)
Remove image height usage from Paragraph as this is not necessary.
Related Pull Requests
Fixed Issues (if relevant)
N/A
Manual testing scenarios (*)
Verify All images displayed correctly
Questions or comments
Contribution checklist (*)