User tests: Successful: Unsuccessful:
Pull Request for Issue #31647 .
Added height: auto to img to maintain aspect ratio when width 100%
Create an article with a full image in format 16:9 (e.g. 1280 x 720px), set Image Class to float-none.
Install this PR and run "npm run build:css"
The image will have a width of 100%, but the height stay at 720px, so the aspect ratio is distorted.
The image is 100% wide and the height scale proportionally.
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Templates (site) NPM Change |
Labels |
Added:
?
NPM Resource Changed
?
|
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
rtc
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-12-17 15:17:57 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
Thanks!
@drmenzelit The phpcs failure in Drone is not related to your PR, it comes from the 4.0-dev branch having had code style errors when you had created your branch based on it. But if you want to get rid of the Drone failure, update your branch to latest 4.0-dev, where the errors meanwhile have been corrected.