Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(Toolbox) Maintain overflow button visible at all times

Mihai-Andrei Uscat9379bb3c5b56
diff --git a/css/_base.scss b/css/_base.scss
index a0e475f000..1380e51c9e 100644
--- a/css/_base.scss
+++ b/css/_base.scss
@@ -201,3 +201,74 @@ form {
background: rgba(0, 0, 0, .5);
border-radius: 4px;
}
+
+.desktop-browser {
+ @media only screen and (max-width: $smallScreen) {
+ .watermark {
+ width: 20%;
+ height: 20%;
+ }
+
+ .new-toolbox {
+ .toolbox-content {
+ .button-group-center, .button-group-left, .button-group-right {
+ .toolbox-button {
+ .toolbox-icon {
+ width: 28px;
+ height: 28px;
+ svg {
+ width: 18px;
+ height: 18px;
+ }
+ }
+
+ &:nth-child(2) {
+ .toolbox-icon {
+ width: 30px;
+ height: 30px;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
+ @media only screen and (max-width: $verySmallScreen) {
+ #videoResolutionLabel {
+ display: none;
+ }
+ .vertical-filmstrip .filmstrip {
+ display: none;
+ }
+ .new-toolbox {
+ .toolbox-content {
+ .button-group-center, .button-group-left, .button-group-right {
+ .settings-button-small-icon {
+ display: none;
+ }
+ .toolbox-button {
+ .toolbox-icon {
+ width: 18px;
+ height: 18px;
+ svg {
+ width: 12px;
+ height: 12px;
+ }
+ }
+
+ &:nth-child(2) {
+ .toolbox-icon {
+ width: 20px;
+ height: 20px;
+ }
+ }
+ }
+ }
+ }
+ }
+ .chrome-extension-banner {
+ display: none;
+ }
+ }
+}
diff --git a/css/_responsive.scss b/css/_responsive.scss
index aa19b40f2f..c867928e2b 100644
--- a/css/_responsive.scss
+++ b/css/_responsive.scss
@@ -1,136 +1,67 @@
-@media only screen and (max-width: $smallScreen) {
- .watermark {
- width: 20%;
- height: 20%;
- }
-
- .new-toolbox {
- .toolbox-content {
- .button-group-center, .button-group-left, .button-group-right {
- .toolbox-button {
- .toolbox-icon {
- width: 28px;
- height: 28px;
- svg {
- width: 18px;
- height: 18px;
- }
- }
-
- &:nth-child(2) {
- .toolbox-icon {
- width: 30px;
- height: 30px;
- }
- }
- }
+@media only screen and (max-width: $verySmallScreen) {
+ .welcome {
+ display: block;
+
+ #enter_room {
+ position: relative;
+ height: 42px;
+
+ .welcome-page-button {
+ font-size: 16px;
+ left: 0;
+ position: absolute;
+ top: 68px;
+ text-align: center;
+ width: 100%;
}
}
- }
-}
-@media only screen and (max-width: $verySmallScreen) {
- .welcome {
- display: block;
+ .header {
+ background-color: #002637;
- #enter_room {
- position: relative;
- height: 42px;
+ #enter_room {
+ .enter-room-input-container {
+ padding-right: 0;
+ }
- .welcome-page-button {
- font-size: 16px;
- left: 0;
- position: absolute;
- top: 68px;
- text-align: center;
- width: 100%;
+ .warning-without-link,
+ .warning-with-link {
+ top: 120px;
+ }
+ }
}
- }
-
- .header {
- background-color: #002637;
-
- #enter_room {
- .enter-room-input-container {
- padding-right: 0;
- }
-
- .warning-without-link,
- .warning-with-link {
- top: 120px;
- }
- }
- }
-
- .welcome-tabs {
- display: none;
- }
-
- .header-text-title {
- text-align: center;
- }
- .welcome-cards-container {
- padding: 0;
- }
-
- &.without-content {
- .header {
- height: 100%;
+ .welcome-tabs {
+ display: none;
}
- }
- #moderated-meetings {
- display: none;
- }
+ .header-text-title {
+ text-align: center;
+ }
- .welcome-footer-row-block {
- display: block;
- }
- .welcome-badge {
- margin-right: 16px;
- }
+ .welcome-cards-container {
+ padding: 0;
+ }
- .welcome-footer {
- display: none;
- }
- }
+ &.without-content {
+ .header {
+ height: 100%;
+ }
+ }
- #videoResolutionLabel {
- display: none;
- }
- .desktop-browser {
- .vertical-filmstrip .filmstrip {
+ #moderated-meetings {
display: none;
}
- }
- .new-toolbox {
- .toolbox-content {
- .button-group-center, .button-group-left, .button-group-right {
- .settings-button-small-icon {
- display: none;
- }
- .toolbox-button {
- .toolbox-icon {
- width: 18px;
- height: 18px;
- svg {
- width: 12px;
- height: 12px;
- }
- }
- &:nth-child(2) {
- .toolbox-icon {
- width: 20px;
- height: 20px;
- }
- }
- }
- }
+ .welcome-footer-row-block {
+ display: block;
+ }
+ .welcome-badge {
+ margin-right: 16px;
+ }
+
+ .welcome-footer {
+ display: none;
}
- }
- .chrome-extension-banner {
- display: none;
}
}
diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js
index 9de102efe1..9906c0f68b 100644
--- a/react/features/toolbox/components/web/Toolbox.js
+++ b/react/features/toolbox/components/web/Toolbox.js
@@ -1221,7 +1221,7 @@ class Toolbox extends Component<Props, State> {
t
} = this.props;
const overflowMenuContent = this._renderOverflowMenuContent();
- const overflowHasItems = Boolean(overflowMenuContent.filter(child => child).length);
+ const overflowHasItems = Boolean(overflowMenuContent.length);
const toolbarAccLabel = 'toolbar.accessibilityLabel.moreActionsMenu';
const buttonsLeft = [];
const buttonsRight = [];
@@ -1232,10 +1232,10 @@ class Toolbox extends Component<Props, State> {
let minSpaceBetweenButtons = 48;
let widthPlusPaddingOfButton = 56;
- if (this.state.windowWidth <= verySmallThreshold) {
+ if (this.state.windowWidth <= verySmallThreshold && !isMobileBrowser()) {
minSpaceBetweenButtons = 26;
widthPlusPaddingOfButton = 28;
- } else if (this.state.windowWidth <= smallThreshold) {
+ } else if (this.state.windowWidth <= smallThreshold && !isMobileBrowser()) {
minSpaceBetweenButtons = 36;
widthPlusPaddingOfButton = 40;
}
@@ -1250,8 +1250,6 @@ class Toolbox extends Component<Props, State> {
/ 2 // divide by the number of groups(left and right group)
);
- const showOverflowMenu = this.state.windowWidth >= verySmallThreshold || isMobileBrowser();
-
if (this._shouldShowButton('chat')) {
buttonsLeft.push('chat');
}
@@ -1265,7 +1263,7 @@ class Toolbox extends Component<Props, State> {
if (this._shouldShowButton('closedcaptions')) {
buttonsLeft.push('closedcaptions');
}
- if (overflowHasItems && showOverflowMenu) {
+ if (overflowHasItems) {
buttonsRight.push('overflowmenu');
}
if (this._shouldShowButton('invite')) {
@@ -1288,13 +1286,13 @@ class Toolbox extends Component<Props, State> {
movedButtons.push(...buttonsLeft.splice(
maxNumberOfButtonsPerGroup,
buttonsLeft.length - maxNumberOfButtonsPerGroup));
- if (buttonsRight.indexOf('overflowmenu') === -1 && showOverflowMenu) {
+ if (buttonsRight.indexOf('overflowmenu') === -1) {
buttonsRight.unshift('overflowmenu');
}
}
if (buttonsRight.length > maxNumberOfButtonsPerGroup) {
- if (buttonsRight.indexOf('overflowmenu') === -1 && showOverflowMenu) {
+ if (buttonsRight.indexOf('overflowmenu') === -1) {
buttonsRight.unshift('overflowmenu');
}