浏览代码

ehhancement: Prevent Ctrl+A from selecting the whole document (#7177)

* enhance: make the right sidebar non-selectable

* enhance: make page references non-selectable

* enhance: make the "Create" button non-selectable

Co-authored-by: Gabriel Horner <[email protected]>
ksqsf 2 年之前
父节点
当前提交
b6946a9169
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 4 0
      src/main/frontend/components/page.css
  2. 2 0
      src/main/frontend/components/sidebar.css

+ 4 - 0
src/main/frontend/components/page.css

@@ -385,3 +385,7 @@ html.is-native-ios {
   line-height: normal;
   background-color: var(--ls-quaternary-background-color);
 }
+
+.references {
+  user-select: none;
+}

+ 2 - 0
src/main/frontend/components/sidebar.css

@@ -267,6 +267,7 @@
     width: 100%;
     padding: 14px;
     background-image: linear-gradient(transparent, var(--ls-primary-background-color));
+    user-select: none;
 
     @screen sm {
       background-image: linear-gradient(transparent, var(--ls-secondary-background-color));
@@ -504,6 +505,7 @@ html[data-theme='dark'] {
   transition: width 0.3s;
   background-color: var(--ls-secondary-background-color, #d8e1e8);
   position: relative;
+  user-select: none;
 
   .resizer {
     @apply absolute top-0 bottom-0;