Make control bar spacer fully transparent

Updated the spacer element in the video player's control bar to be fully transparent and non-interactive by setting background, border, outline, boxShadow, opacity, and pointerEvents styles. This ensures the spacer does not affect the visual appearance or user interaction.
This commit is contained in:
Yiannis Christodoulou 2025-10-10 09:36:23 +03:00
parent d8cfc8be7b
commit 5da377a8a5

View File

@ -2843,6 +2843,15 @@ function VideoJSPlayer({ videoId = 'default-video' }) {
spacer.style.flex = '1';
spacer.style.minWidth = '1px';
// Remove background and style the spacer to be transparent
spacer.style.background = 'transparent';
spacer.style.backgroundColor = 'transparent';
spacer.style.border = 'none';
spacer.style.outline = 'none';
spacer.style.boxShadow = 'none';
spacer.style.opacity = '0';
spacer.style.pointerEvents = 'none';
// Insert spacer right after the time display
const controlBarEl = controlBar.el();
const timeDisplayEl = customRemainingTime.el();