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: layout issue when only chat tab is visible (#16166)

Avram Tudor1cb2025951a4
diff --git a/react/features/chat/components/web/Chat.tsx b/react/features/chat/components/web/Chat.tsx
index e50371d0b3..faf9610aac 100644
--- a/react/features/chat/components/web/Chat.tsx
+++ b/react/features/chat/components/web/Chat.tsx
@@ -447,7 +447,7 @@ const Chat = ({
* @returns {ReactElement}
*/
function renderTabs() {
- const tabs = [
+ let tabs = [
{
accessibilityLabel: t('chat.tabs.chat'),
countBadge:
@@ -488,6 +488,10 @@ const Chat = ({
});
}
+ if (tabs.length === 1) {
+ tabs = [];
+ }
+
return (
<Tabs
accessibilityLabel = { _isPollsEnabled || _isCCTabEnabled || _isFileSharingTabEnabled