User blog:SapadorCastelo/Fix UCP video thumbs

The big play button appears under the video thumbnail! If you have this error when placing videos inside infoboxes on your UCP wiki, especially when there is no gallery tag in that page, take a look on the code that may fix it for you. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Here is the code: /* Article videos - fix for UCP bug on video thumbs */ .video-thumbnail { display: inline-block; position: relative; } .video-thumbnail img { display: inline; } .video-thumbnail .thumbnail-play-icon-container { display: flex; position: absolute; top: 0; height: 100%; width: 100%; align-items: center; justify-content: center; } .video-thumbnail .thumbnail-play-icon { width: 72px; }

Copy and paste it on your personal or wiki wide CSS.

It would be nice if you could give me a feedback about the results, if it really fixed or not the video thumb glitch.