Improve video player by hiding picture-in-picture controls

Hide the picture-in-picture button and related overlay icons in the Video.js player across all video elements.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2eb1084e-b728-4449-9231-f1665924c8d5
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2eb1084e-b728-4449-9231-f1665924c8d5/QCN70f2
This commit is contained in:
sebastjanartic 2025-08-29 16:19:38 +00:00
parent eb14429383
commit 139839d582

View File

@ -354,4 +354,20 @@ input[data-testid*="search"]::placeholder {
user-select: none; user-select: none;
opacity: 0.08; opacity: 0.08;
filter: blur(0.5px); filter: blur(0.5px);
}
/* Hide picture-in-picture button on all video elements */
video::-webkit-media-controls-picture-in-picture-button {
display: none !important;
}
video::-moz-picture-in-picture-button {
display: none !important;
}
/* Hide any picture-in-picture overlay icons */
*[aria-label*="picture"],
*[title*="picture"],
*[data-title*="picture"] {
display: none !important;
} }