+
diff --git a/src/app/templates/client/Client.scss b/src/app/templates/client/Client.scss
index 45a50527..67d5dfd5 100644
--- a/src/app/templates/client/Client.scss
+++ b/src/app/templates/client/Client.scss
@@ -1,3 +1,5 @@
+@use '../../partials/screen';
+
.client-container {
display: flex;
height: 100%;
@@ -5,12 +7,22 @@
.navigation__wrapper {
width: var(--navigation-width);
+
+ @include screen.smallerThan(mobileBreakpoint) {
+ width: 100%;
+ }
}
+
.room__wrapper {
flex: 1;
min-width: 0;
}
+@include screen.smallerThan(mobileBreakpoint) {
+ .client__item-hidden {
+ display: none;
+ }
+}
.loading-display {
position: absolute;
@@ -41,4 +53,4 @@
.text {
color: var(--tc-link);
}
-}
\ No newline at end of file
+}
diff --git a/src/client/action/navigation.js b/src/client/action/navigation.js
index e16d25d2..8876732e 100644
--- a/src/client/action/navigation.js
+++ b/src/client/action/navigation.js
@@ -23,6 +23,15 @@ export function selectRoom(roomId, eventId) {
});
}
+/**
+ * Open navigation on compact screen sizes
+ */
+export function openNavigation() {
+ appDispatcher.dispatch({
+ type: cons.actions.navigation.OPEN_NAVIGATION,
+ });
+}
+
export function openSpaceSettings(roomId, tabText) {
appDispatcher.dispatch({
type: cons.actions.navigation.OPEN_SPACE_SETTINGS,
diff --git a/src/client/state/cons.js b/src/client/state/cons.js
index 4e258ac3..34a3a928 100644
--- a/src/client/state/cons.js
+++ b/src/client/state/cons.js
@@ -47,6 +47,7 @@ const cons = {
CLICK_REPLY_TO: 'CLICK_REPLY_TO',
OPEN_SEARCH: 'OPEN_SEARCH',
OPEN_REUSABLE_CONTEXT_MENU: 'OPEN_REUSABLE_CONTEXT_MENU',
+ OPEN_NAVIGATION: 'OPEN_NAVIGATION',
OPEN_REUSABLE_DIALOG: 'OPEN_REUSABLE_DIALOG',
},
room: {
@@ -93,6 +94,7 @@ const cons = {
REPLY_TO_CLICKED: 'REPLY_TO_CLICKED',
SEARCH_OPENED: 'SEARCH_OPENED',
REUSABLE_CONTEXT_MENU_OPENED: 'REUSABLE_CONTEXT_MENU_OPENED',
+ NAVIGATION_OPENED: 'NAVIGATION_OPENED',
REUSABLE_DIALOG_OPENED: 'REUSABLE_DIALOG_OPENED',
},
roomList: {
diff --git a/src/client/state/navigation.js b/src/client/state/navigation.js
index eb59e7a2..bbecb2e1 100644
--- a/src/client/state/navigation.js
+++ b/src/client/state/navigation.js
@@ -131,6 +131,9 @@ class Navigation extends EventEmitter {
[cons.actions.navigation.OPEN_SETTINGS]: () => {
this.emit(cons.events.navigation.SETTINGS_OPENED, action.tabText);
},
+ [cons.actions.navigation.OPEN_NAVIGATION]: () => {
+ this.emit(cons.events.navigation.NAVIGATION_OPENED);
+ },
[cons.actions.navigation.OPEN_EMOJIBOARD]: () => {
this.emit(
cons.events.navigation.EMOJIBOARD_OPENED,