aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/workspaces
diff options
context:
space:
mode:
authorLibravatar niu tech <jerzyglowacki@gmail.com>2021-09-15 10:39:27 +0200
committerLibravatar GitHub <noreply@github.com>2021-09-15 10:39:27 +0200
commite2f440ff2dd5179e2d9bc8dea119fc4fe7c562a1 (patch)
tree2f8a1e012c4c13b2c3e7eb243277bef951b67378 /src/features/workspaces
parentdocs: fix link in bug_report template [skip ci] (diff)
downloadferdium-app-e2f440ff2dd5179e2d9bc8dea119fc4fe7c562a1.tar.gz
ferdium-app-e2f440ff2dd5179e2d9bc8dea119fc4fe7c562a1.tar.zst
ferdium-app-e2f440ff2dd5179e2d9bc8dea119fc4fe7c562a1.zip
Enable Split View Mode (#1926)
Diffstat (limited to 'src/features/workspaces')
-rw-r--r--src/features/workspaces/store.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/features/workspaces/store.js b/src/features/workspaces/store.js
index 73e882990..db2b69f99 100644
--- a/src/features/workspaces/store.js
+++ b/src/features/workspaces/store.js
@@ -190,6 +190,12 @@ export default class WorkspacesStore extends FeatureStore {
190 setTimeout(() => { 190 setTimeout(() => {
191 this.isSwitchingWorkspace = false; 191 this.isSwitchingWorkspace = false;
192 this.nextWorkspace = null; 192 this.nextWorkspace = null;
193 if (this.stores.settings.app.splitMode) {
194 const serviceNames = new Set(this.getWorkspaceServices(workspace).map(service => service.name));
195 for (const wrapper of document.querySelectorAll('.services__webview-wrapper')) {
196 wrapper.style.display = serviceNames.has(wrapper.dataset.name) ? '' : 'none';
197 }
198 }
193 }, 1000); 199 }, 1000);
194 }; 200 };
195 201
@@ -205,6 +211,11 @@ export default class WorkspacesStore extends FeatureStore {
205 // Indicate that we are done switching to the default workspace 211 // Indicate that we are done switching to the default workspace
206 setTimeout(() => { 212 setTimeout(() => {
207 this.isSwitchingWorkspace = false; 213 this.isSwitchingWorkspace = false;
214 if (this.stores.settings.app.splitMode) {
215 for (const wrapper of document.querySelectorAll('.services__webview-wrapper')) {
216 wrapper.style.display = '';
217 }
218 }
208 }, 1000); 219 }, 1000);
209 }; 220 };
210 221