diff --git a/src/components/structures/RoomView.tsx b/src/components/structures/RoomView.tsx index 8223c12e77..9990fc69e0 100644 --- a/src/components/structures/RoomView.tsx +++ b/src/components/structures/RoomView.tsx @@ -1848,6 +1848,19 @@ export default class RoomView extends React.Component { />; } + const statusBarAreaClass = classNames("mx_RoomView_statusArea", { + "mx_RoomView_statusArea_expanded": isStatusAreaExpanded, + }); + + // if statusBar does not exist then statusBarArea is blank and takes up unnecessary space on the screen + // show statusBarArea only if statusBar is present + const statusBarArea = statusBar &&
+
+
+ { statusBar } +
+
; + const roomVersionRecommendation = this.state.upgradeRecommendation; const showRoomUpgradeBar = ( roomVersionRecommendation && @@ -2045,10 +2058,6 @@ export default class RoomView extends React.Component { />); } - const statusBarAreaClass = classNames("mx_RoomView_statusArea", { - "mx_RoomView_statusArea_expanded": isStatusAreaExpanded, - }); - const showRightPanel = this.state.room && this.state.showRightPanel; const rightPanel = showRightPanel ? { { messagePanel } { searchResultsPanel }
-
-
-
- { statusBar } -
-
+ { statusBarArea } { previewBar } { messageComposer }