Skip to content
Snippets Groups Projects

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

Merged 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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading