I'm embedding an external video using CKeditor and the 'insert from media library button'. If the video has no aligned or centre alignment it is visible once saved. If left or right-align it is not seen. In varbase_media the file
varbase_media/config/optional/core.entity_view_display.media.video.small.yml specifies a height and width which is correctly applied to the iframe tag by varbase_media/config/optional/core.entity_view_display.media.video.small.yml lines 59 and 60 (if I am correct). But using inspect in Chrome, the parent div tag has a computed size of 0 x 0 which means the video is not seen. I suggest a solution of also applying the height and width to the parent tag or adding a new class so the size can be modified. The class option would mean line 102 of varbase_media/config/optional/core.entity_view_display.media.video.small.yml would include a new class, eg varbase-video-small along with the other current classes: varbase-video-player embed-responsive embed-responsive-16by9
Actually there is an easier way. Simply add the following to varbase_media/scss/varbase_media.common_logged.scss:
.media--type-video-embed.media--view-mode-small .varbase-video-player {
height: 225px;
width: 300px;
}
This could be repeated for other sizes, eg medium etc. The other advantage of this solution is a subtheme can set the size through sass.
Closed: outdated
9.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.