mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-09 08:58:53 -05:00
Improve remaining time styling and settings button logic
This commit is contained in:
parent
8f872951e4
commit
0f135e61bb
@ -9,4 +9,43 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
white-space: nowrap;
|
||||||
|
padding: 0 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vjs-control-bar .custom-remaining-time {
|
||||||
|
flex-shrink: 1 !important;
|
||||||
|
min-width: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Responsive time display sizing */
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.vjs-control-bar .custom-remaining-time .vjs-remaining-time-display {
|
||||||
|
font-size: 11px !important;
|
||||||
|
padding: 0 2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 500px) {
|
||||||
|
.vjs-control-bar .custom-remaining-time .vjs-remaining-time-display {
|
||||||
|
font-size: 9px !important;
|
||||||
|
padding: 0 1px;
|
||||||
|
letter-spacing: -0.3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.vjs-control-bar .custom-remaining-time .vjs-remaining-time-display {
|
||||||
|
font-size: 9px !important;
|
||||||
|
padding: 0 1px;
|
||||||
|
letter-spacing: -0.3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 399px) {
|
||||||
|
.vjs-control-bar .custom-remaining-time .vjs-remaining-time-display {
|
||||||
|
font-size: 8px !important;
|
||||||
|
padding: 0;
|
||||||
|
letter-spacing: -0.5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -494,17 +494,8 @@ class CustomSettingsMenu extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
positionButton() {
|
positionButton() {
|
||||||
const controlBar = this.player().getChild('controlBar');
|
// CSS flexbox order handles positioning - no manual repositioning needed
|
||||||
const fullscreenToggle = controlBar.getChild('fullscreenToggle');
|
// The settings button will be positioned according to the order property in CSS
|
||||||
|
|
||||||
if (this.settingsButton && fullscreenToggle) {
|
|
||||||
// Small delay to ensure all buttons are created
|
|
||||||
setTimeout(() => {
|
|
||||||
const fullscreenIndex = controlBar.children().indexOf(fullscreenToggle);
|
|
||||||
controlBar.removeChild(this.settingsButton);
|
|
||||||
controlBar.addChild(this.settingsButton, {}, fullscreenIndex + 1);
|
|
||||||
}, 50);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setupEventListeners() {
|
setupEventListeners() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user