mirror of https://github.com/vector-im/riot-web
add comment - explain conditional statusBar
parent
a53886a630
commit
1c7a89b2e4
|
@ -1852,6 +1852,8 @@ export default class RoomView extends React.Component<IProps, IState> {
|
||||||
"mx_RoomView_statusArea_expanded": isStatusAreaExpanded,
|
"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 && <div className={statusBarAreaClass}>
|
const statusBarArea = statusBar && <div className={statusBarAreaClass}>
|
||||||
<div className="mx_RoomView_statusAreaBox">
|
<div className="mx_RoomView_statusAreaBox">
|
||||||
<div className="mx_RoomView_statusAreaBox_line" />
|
<div className="mx_RoomView_statusAreaBox_line" />
|
||||||
|
|
Loading…
Reference in New Issue