Web: Hide user-select on Desktop Editors

This commit is contained in:
Alexey Safronov 2021-05-05 11:21:21 +03:00
parent 4aecce0565
commit 32abd05d10
2 changed files with 13 additions and 0 deletions

View File

@ -262,6 +262,10 @@ const ShellWrapper = inject(({ auth }) => {
init();
auth.settingsStore.setModuleInfo(config.homepage, "home");
auth.setProductVersion(config.version);
if (auth.settingsStore.isDesktopClient) {
document.body.classList.add("desktop");
}
},
//isThirdPartyResponse,
isLoaded,

View File

@ -23,3 +23,12 @@ body {
body.loading * {
cursor: wait !important;
}
body.desktop {
user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
mozuserselect: none;
}