Browse Source

fix(nc-gui): remove applyNonSelectable logic

pull/5342/head
Wing-Kam Wong 1 year ago
parent
commit
a147d56557
  1. 13
      packages/nc-gui/assets/css/global.css
  2. 4
      packages/nc-gui/utils/viewUtils.ts

13
packages/nc-gui/assets/css/global.css

@ -30,15 +30,4 @@ For Drag and Drop
*/
.grabbing * {
cursor: grabbing;
}
/*
Prevent Ctrl + A selection
*/
.non-selectable {
-webkit-user-select: none;
-webkit-touch-callout: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
}

4
packages/nc-gui/utils/viewUtils.ts

@ -41,10 +41,6 @@ export function applyLanguageDirection(dir: typeof rtl | typeof ltr) {
document.body.style.direction = dir
}
export function applyNonSelectable() {
document.body.classList.add('non-selectable')
}
export const getViewIcon = (key?: string | number) => {
if (!key) return

Loading…
Cancel
Save