Smithsonian / dpo-voyager

DPO Voyager - 3D Explorer and Tool Suite
Apache License 2.0
164 stars 28 forks source link

set max-width to 100% and height to auto #260

Closed sdumetz closed 1 month ago

sdumetz commented 4 months ago

max-width was already set in styles.scss#L83, but not in editor leading to inconsistent behaviour.

Moreover, max-width without height: auto leads to stretched images.

I created a new css file because the current content.ui.min.cssand content.min.css seems directly imported from tinyMCE and keeping them pristine will probably help future updates.

With those changes it is still possible to manually force images to stretch by specifying a different height in the image block popup.

gjcope commented 4 months ago

We've been working on a fix as well since there are several inconsistencies like this. But this seems reasonable. Thanks!