fix: remove js scrollbars in body & editor (#962)

This commit is contained in:
Stefan Dej 2022-07-18 00:49:00 +02:00 committed by GitHub
parent f4ed91e515
commit a4e268e543
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 20 deletions

View File

@ -21,10 +21,6 @@
/*noinspection CssUnresolvedCustomProperty*/
color: var(--v-btn-text-primary);
}
.main-content-scrollbar {
height: calc(var(--app-height) - 48px);
}
</style>
<template>
@ -34,11 +30,9 @@
<the-topbar></the-topbar>
<v-main id="content" :style="mainStyle">
<overlay-scrollbars class="main-content-scrollbar">
<v-container id="page-container" fluid class="container px-3 px-sm-6 py-sm-6 mx-auto">
<router-view></router-view>
</v-container>
</overlay-scrollbars>
<v-container id="page-container" fluid class="container px-3 px-sm-6 py-sm-6 mx-auto">
<router-view></router-view>
</v-container>
</v-main>
<the-update-dialog></the-update-dialog>
<the-editor></the-editor>

View File

@ -1,5 +1,6 @@
html {
overflow: hidden;
overflow: auto;
scrollbar-color: #6b6b6b #272727;
}
body {
@ -58,3 +59,21 @@ body {
.settings-tabs .v-window {
overflow-y: auto !important;
}
.editor-dialog .cm-editor {
height: calc(100vh - 48px);
}
::-webkit-scrollbar {
background-color: #272727;
width: 14px;
height: 14px;
}
::-webkit-scrollbar-thumb {
background-color: #6b6b6b;
border-radius: 7px;
border: 4px solid #272727;
min-width: 100px;
min-height: 100px;
}

View File

@ -1,5 +1,3 @@
<style scoped></style>
<template>
<div>
<v-dialog
@ -49,14 +47,12 @@
</v-btn>
</template>
<v-card-text class="pa-0">
<overlay-scrollbars style="height: calc(var(--app-height) - 48px)" :options="scrollbarOptions">
<codemirror-async
v-if="show"
ref="editor"
v-model="sourcecode"
:name="filename"
:file-extension="fileExtension"></codemirror-async>
</overlay-scrollbars>
<codemirror-async
v-if="show"
ref="editor"
v-model="sourcecode"
:name="filename"
:file-extension="fileExtension"></codemirror-async>
</v-card-text>
</panel>
</v-dialog>