Fix mobile UI: force toolbar always visible, revert viewport hack

Toolbar was auto-hiding on mobile leaving only video visible. Added
toolbarConfig.alwaysVisible and CSS overrides to keep controls showing.
Reverted desktop viewport override which caused zoom/layout issues.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-12 02:37:30 +00:00
parent 39179b8c10
commit 3f5899070f
2 changed files with 36 additions and 2 deletions

View File

@ -1,4 +1,19 @@
<!-- Force desktop viewport on mobile -->
<meta name="viewport" content="width=1280, initial-scale=0.25, user-scalable=yes">
<!-- Load custom CSS after Jitsi CSS -->
<link rel="stylesheet" href="css/custom/custom.css">
<style>
/* Force toolbar visible on mobile - override auto-hide */
.new-toolbox {
visibility: visible !important;
opacity: 1 !important;
pointer-events: auto !important;
}
.toolbox-content-mobile {
display: flex !important;
visibility: visible !important;
opacity: 1 !important;
}
.toolbox-content-items {
visibility: visible !important;
opacity: 1 !important;
}
</style>

View File

@ -97,3 +97,22 @@ config.disableDeepLinking = true;
// Mobile-friendly: prefer VP8 (better hardware decode support on mobile)
config.videoQuality.mobileCodecPreferenceOrder = ["VP8", "H264", "VP9", "AV1"];
// Force toolbar to always be visible (don't auto-hide on mobile)
config.toolbarConfig = {
autoHideWhileChatIsOpen: false,
alwaysVisible: true,
initialTimeout: 0,
timeout: 0
};
// Ensure all toolbar buttons are available on mobile
config.toolbarButtons = [
'camera', 'chat', 'desktop', 'filmstrip', 'fullscreen',
'hangup', 'microphone', 'participants-pane', 'raisehand',
'settings', 'tileview', 'videoquality'
];
// Disable mobile-specific notifications that obscure controls
config.notifications = [];
config.disableModeratorIndicator = false;