TF-2948 Apply new identity view for web
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -278,4 +278,24 @@ class HtmlInteraction {
|
||||
</script>
|
||||
''';
|
||||
}
|
||||
|
||||
static const scriptsDisableZoom = '''
|
||||
<script type="text/javascript">
|
||||
document.addEventListener('wheel', function(e) {
|
||||
e.ctrlKey && e.preventDefault();
|
||||
}, {
|
||||
passive: false,
|
||||
});
|
||||
window.addEventListener('keydown', function(e) {
|
||||
if (event.metaKey || event.ctrlKey) {
|
||||
switch (event.key) {
|
||||
case '=':
|
||||
case '-':
|
||||
event.preventDefault();
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
''';
|
||||
}
|
||||
@@ -250,4 +250,16 @@ class HtmlTemplate {
|
||||
}
|
||||
</style>
|
||||
''';
|
||||
|
||||
static const String disableScrollingStyleCSS = '''
|
||||
html, body {
|
||||
overflow: hidden;
|
||||
overscroll-behavior: none;
|
||||
scrollbar-width: none; /* Firefox */
|
||||
-ms-overflow-style: none; /* IE/Edge */
|
||||
}
|
||||
::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
''';
|
||||
}
|
||||
Reference in New Issue
Block a user