From ee393a7953c1ced44b5b3324c029b96d30f84031 Mon Sep 17 00:00:00 2001 From: Krzysztof Kotlarek Date: Wed, 21 Feb 2024 09:16:49 +1100 Subject: [PATCH] UX: hide the draggable icon in the sidebar form on mobile (#25738) Drag and drop link works only on desktop. Therefore, the drag icon should be hidden on mobile. --- .../components/sidebar/section-form-link.hbs | 8 ++++--- .../components/sidebar/section-form-link.js | 2 ++ app/assets/stylesheets/mobile/_index.scss | 1 + app/assets/stylesheets/mobile/sidebar.scss | 8 +++++++ spec/system/custom_sidebar_sections_spec.rb | 21 +++++++++++++++++++ 5 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 app/assets/stylesheets/mobile/sidebar.scss diff --git a/app/assets/javascripts/discourse/app/components/sidebar/section-form-link.hbs b/app/assets/javascripts/discourse/app/components/sidebar/section-form-link.hbs index 14769fa4b52..cb24ea34818 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/section-form-link.hbs +++ b/app/assets/javascripts/discourse/app/components/sidebar/section-form-link.hbs @@ -13,9 +13,11 @@ {{on "drop" this.dropItem}} role="row" > -
- {{d-icon "grip-lines"}} -
+ {{#unless this.site.mobileView}} +
+ {{d-icon "grip-lines"}} +
+ {{/unless}}