Skip to content

fix #507: retain custom emoji aspect ratio in admin panel

Tess K requested to merge tess/Sharkey:bugfix/507-custom-emoji-stretch into develop

What does this PR do? This PR adds the object-fit: contain css attribute to the img tags for the custom emoji admin panel which makes them scale uniformly when scaling them to fit in the preview box. This fixes #507 (closed)

Before: image

After: image

The browser compatibility for object-fit: contain;: https://caniuse.com/mdn-css_properties_object-fit_contain

Contribution Guidelines By submitting this merge request, you agree to follow our Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines
  • I have made sure to test this pull request

Merge request reports