mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 15:49:55 +08:00
65759c126b
When uploading images, they are assigned a dominant color which gets used in various places, such as Discourse Hub and the new lightbox. Previously in chat we didn't assign this attribute, so it was defaulting to a null value. We did however use it as an inline CSS style for the image background (which is visible while the image is downloaded). This change adds data-dominant-color to the uploaded image in chat and uses it correctly within lightbox. |
||
---|---|---|
.. | ||
images | ||
javascripts | ||
stylesheets |