From 50d513fa76d1b72368ab1fd263b986eab7a91378 Mon Sep 17 00:00:00 2001 From: Kyle Klus Date: Sat, 28 Dec 2024 14:44:11 +0100 Subject: [PATCH] ADD: Added an explanation of how to switch between mobile emulation to the contributing docs --- docs/docs/en/contributing.md | 8 ++++++++ docs/docs/zh/contributing.md | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/docs/docs/en/contributing.md b/docs/docs/en/contributing.md index d9ff6505..576b9489 100644 --- a/docs/docs/en/contributing.md +++ b/docs/docs/en/contributing.md @@ -110,6 +110,14 @@ Please note that: - Document your functions & classes with JSDoc. +- One can switch between mobile view and desktop view by entering the following command in developer console: + + ```js + this.app.emulateMobile(false); // to switch to desktop view + + this.app.emulateMobile(true); // to switch to mobile view + ``` + - Test your changes in all arrangements that the ui can be in: 1. Desktop 2. Mobile portrait mode diff --git a/docs/docs/zh/contributing.md b/docs/docs/zh/contributing.md index d9ff6505..576b9489 100644 --- a/docs/docs/zh/contributing.md +++ b/docs/docs/zh/contributing.md @@ -110,6 +110,14 @@ Please note that: - Document your functions & classes with JSDoc. +- One can switch between mobile view and desktop view by entering the following command in developer console: + + ```js + this.app.emulateMobile(false); // to switch to desktop view + + this.app.emulateMobile(true); // to switch to mobile view + ``` + - Test your changes in all arrangements that the ui can be in: 1. Desktop 2. Mobile portrait mode