From 7227049c2a98db1b1c7fee33a342e7be7a86055b Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 8 Jan 2019 12:05:39 +0100 Subject: [PATCH] add right panel toggle button to room header when in grid --- res/img/feather-icons/toggle-right-panel.svg | 17 +++++++++++++++++ src/components/structures/GroupGridView.js | 7 ++++--- src/components/views/rooms/RoomHeader.js | 17 +++++++++++++++++ 3 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 res/img/feather-icons/toggle-right-panel.svg diff --git a/res/img/feather-icons/toggle-right-panel.svg b/res/img/feather-icons/toggle-right-panel.svg new file mode 100644 index 0000000000..4cadf89564 --- /dev/null +++ b/res/img/feather-icons/toggle-right-panel.svg @@ -0,0 +1,17 @@ + + + + Group 2 + Created with Sketch. + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/structures/GroupGridView.js b/src/components/structures/GroupGridView.js index 2eb3c357df..b5e511db41 100644 --- a/src/components/structures/GroupGridView.js +++ b/src/components/structures/GroupGridView.js @@ -96,14 +96,14 @@ export default class RoomGridView extends React.Component { if (activeRoomId) { rightPanel = (
-
- { !this.props.collapsedRhs ? : undefined } +
+
); } return (
- +
{ roomStores.map((roomStore, i) => { if (roomStore) { @@ -118,6 +118,7 @@ export default class RoomGridView extends React.Component { className={tileClasses} > ; } + let toggleRightPanelButton; + if (this.props.isGrid) { + toggleRightPanelButton = + + ; + } + return (
@@ -420,6 +436,7 @@ module.exports = React.createClass({ { cancelButton } { rightRow } { !this.props.isGrid ? : undefined } + { toggleRightPanelButton }
);