Sfoglia il codice sorgente

fix: menu items should not be selectable

Peng Xiao 3 anni fa
parent
commit
714d3ce53b
2 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 1 0
      resources/css/common.css
  2. 4 0
      src/main/frontend/components/sidebar.css

+ 1 - 0
resources/css/common.css

@@ -906,6 +906,7 @@ button.menu:focus {
 .menu-link {
   background-color: var(--ls-primary-background-color, #fff);
   color: var(--ls-primary-text-color);
+  user-select: none;
 }
 
 .menu-link:first-of-type {

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

@@ -474,3 +474,7 @@ html[data-theme='dark'] {
 .favorites li.dragging-target {
   border-left: 5px solid green;
 }
+
+.recent-item {
+  user-select: none;
+}