Closes #11175
@ -68,6 +68,10 @@
& .unread-rooms {
display: none;
}
.embedded-view > & {
@media (width < 780px) {
@ -5496,10 +5496,6 @@ body:not(.is-cordova) {
.rc-old .embedded-view {
& .flex-tab-bar {
& .messages-container {
border-width: 0;
@ -47,7 +47,7 @@
{{> videoCall overlay=true}}
<div id="user-card-popover"></div>
<div id="rocket-chat" class="{{embeddedVersion}} menu-nav">
{{#unless modal}}
{{#unless removeSidenav}}
{{> sideNav }}
{{/unless}}
<div class="rc-old main-content content-background-color {{readReceiptsEnabled}} {{#if modal}}main-modal{{/if}}">
@ -116,6 +116,10 @@ Template.body.onRendered(function() {
RocketChat.mainReady = new ReactiveVar(false);
Template.main.helpers({
removeSidenav() {
const { modal } = this;
return (modal || typeof modal === 'function' ? modal() : modal) || RocketChat.Layout.isEmbedded();
},
siteName() {
return RocketChat.settings.get('Site_Name');