nuxeo-document-preview has a hard-coded min-height value for several of the elements (nuxeo-image-viewer, nuxeo-pdf-viewer, etc.). This makes the element very difficult to work with (impossible, in my case, as I need it to be smaller).
We should provide CSS mixins for these values (e.g. --nuxeo-image-viewer-min-height) so that they can be changed.
Alternatively, make a container where you hard-code the height if needed, but but abstract the rest of the functionality as a re-usable element, and use a slot.
Clarification: the slotted() syntax can't be used because 1) these are not top-level children and 2) there is no slot.