enonic / app-contentstudio-old

Enonic XP - Content Studio app
GNU General Public License v3.0
1 stars 1 forks source link

Image sizing in the "Original image" mode #492

Closed alansemenov closed 6 years ago

alansemenov commented 6 years ago

When "Original" option is selected in the Styles dropdown, the image should be sized based on these two rules:

  1. If original image width is less than container width, the original width should be used
  2. If original image width exceeds the container width, it should take up 100% of the container width.

Use max-width: 100%; on the figure element to achieve this.