mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-30 17:15:16 +02:00
prevent selecting filenames under icons
This commit is contained in:
parent
202c0adf41
commit
f158eb6f45
@ -127,6 +127,15 @@ body::-webkit-scrollbar-thumb {
|
|||||||
border: 3px solid var(--scrollbar-bg);
|
border: 3px solid var(--scrollbar-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.no-select {
|
||||||
|
-webkit-touch-callout: none; /* iOS Safari */
|
||||||
|
-webkit-user-select: none; /* Safari */
|
||||||
|
-khtml-user-select: none; /* Konqueror HTML */
|
||||||
|
-moz-user-select: none; /* Old versions of Firefox */
|
||||||
|
-ms-user-select: none; /* Internet Explorer/Edge */
|
||||||
|
user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
|
||||||
|
}
|
||||||
|
|
||||||
.flex-row {
|
.flex-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
@ -156,7 +156,7 @@ class NavEntry {
|
|||||||
let icon = this.dom_element.nav_item_icon = document.createElement("i");
|
let icon = this.dom_element.nav_item_icon = document.createElement("i");
|
||||||
icon.classList.add("nav-item-icon");
|
icon.classList.add("nav-item-icon");
|
||||||
let title = this.dom_element.nav_item_title = document.createElement("div");
|
let title = this.dom_element.nav_item_title = document.createElement("div");
|
||||||
title.classList.add("nav-item-title");
|
title.classList.add("nav-item-title", "no-select");
|
||||||
title.innerText = this.filename();
|
title.innerText = this.filename();
|
||||||
this.dom_element.appendChild(icon);
|
this.dom_element.appendChild(icon);
|
||||||
this.dom_element.appendChild(title);
|
this.dom_element.appendChild(title);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user