peterhanania / Discord-Package

A detailed discord data package explorer inspired by ddpe.androz2091.fr made to help discord users visualize the data used by Discord.
https://discordpackage.com/
GNU General Public License v3.0
447 stars 46 forks source link

prevent emote stretching #143

Closed SpiritAxolotl closed 3 weeks ago

SpiritAxolotl commented 6 months ago

exactly what it says on the tin. emotes that didn't have a 1:1 aspect ratio were stretched to the container's width and height, and I didn't like that. it just adds object-fit: contain; to images with "emoji" alt text (img[alt="emoji"]) and removes the margins (margin: 0;) from the m-2 class.

this is the most bare-bones implementation possible. I don't know exactly what the expectations are for this sort of thing so feel free to change where it is or how it's implemented.

netlify[bot] commented 6 months ago

Deploy Preview for discordpackage ready!

Name Link
Latest commit 6d062ea59d1ac51a42a0c8635c30b7b55ea49cab
Latest deploy log https://app.netlify.com/sites/discordpackage/deploys/6631b1736e2de5000805b643
Deploy Preview https://deploy-preview-143--discordpackage.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

maxwellward commented 1 month ago

Hi @SpiritAxolotl, can you please provide an example of where this issue occurs/reproduction steps for the original bug so I can verify the change? Thanks :)