From a36584b8c877d17a87aa3235ffc407c24d4180d4 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Thu, 4 Aug 2022 14:26:35 +0800 Subject: [PATCH] Add support for toggling between mobile and desktop view on sidebar (#17794) In the current hamburger menu dropdown, we have a link which allows users to toggle between mobile and desktop view on mobile and touch devices. This commit brings the same behaviour to sidebar. --- .../templates/components/sidebar/footer.hbs | 8 +++++++ .../tests/acceptance/sidebar-mobile-test.js | 22 +++++++++++++++++++ .../tests/acceptance/sidebar-test.js | 21 ++++++++++++++++++ 3 files changed, 51 insertions(+) diff --git a/app/assets/javascripts/discourse/app/templates/components/sidebar/footer.hbs b/app/assets/javascripts/discourse/app/templates/components/sidebar/footer.hbs index fb5a01a4439..1f7aae78311 100644 --- a/app/assets/javascripts/discourse/app/templates/components/sidebar/footer.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/sidebar/footer.hbs @@ -1,6 +1,14 @@