From b854fa8cdbbb564c681b97340cdd858b2ebcd522 Mon Sep 17 00:00:00 2001 From: Krzysztof Kotlarek Date: Wed, 29 Mar 2023 14:32:28 +1100 Subject: [PATCH] FIX: disable text select on sidebar (#20871) To make drag&drop links reliable, we have to disable user-select option on whole sidebar. https://developer.mozilla.org/en-US/docs/Web/CSS/user-select --- app/assets/stylesheets/common/base/sidebar.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/assets/stylesheets/common/base/sidebar.scss b/app/assets/stylesheets/common/base/sidebar.scss index 505db8a11a2..57d4942efd0 100644 --- a/app/assets/stylesheets/common/base/sidebar.scss +++ b/app/assets/stylesheets/common/base/sidebar.scss @@ -29,6 +29,13 @@ position: sticky; top: var(--header-offset); + -webkit-touch-callout: none !important; + -webkit-user-select: none !important; + -moz-user-select: none !important; + -ms-user-select: none !important; + -o-user-select: none !important; + user-select: none; + .footer-nav-ipad & { top: calc(var(--header-offset) + var(--footer-nav-height)); height: calc(