fix: remove js scrollbars in body & editor (#962)
This commit is contained in:
parent
f4ed91e515
commit
a4e268e543
@ -21,10 +21,6 @@
|
|||||||
/*noinspection CssUnresolvedCustomProperty*/
|
/*noinspection CssUnresolvedCustomProperty*/
|
||||||
color: var(--v-btn-text-primary);
|
color: var(--v-btn-text-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-content-scrollbar {
|
|
||||||
height: calc(var(--app-height) - 48px);
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@ -34,11 +30,9 @@
|
|||||||
<the-topbar></the-topbar>
|
<the-topbar></the-topbar>
|
||||||
|
|
||||||
<v-main id="content" :style="mainStyle">
|
<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">
|
<v-container id="page-container" fluid class="container px-3 px-sm-6 py-sm-6 mx-auto">
|
||||||
<router-view></router-view>
|
<router-view></router-view>
|
||||||
</v-container>
|
</v-container>
|
||||||
</overlay-scrollbars>
|
|
||||||
</v-main>
|
</v-main>
|
||||||
<the-update-dialog></the-update-dialog>
|
<the-update-dialog></the-update-dialog>
|
||||||
<the-editor></the-editor>
|
<the-editor></the-editor>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
html {
|
html {
|
||||||
overflow: hidden;
|
overflow: auto;
|
||||||
|
scrollbar-color: #6b6b6b #272727;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@ -58,3 +59,21 @@ body {
|
|||||||
.settings-tabs .v-window {
|
.settings-tabs .v-window {
|
||||||
overflow-y: auto !important;
|
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;
|
||||||
|
}
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
<style scoped></style>
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<v-dialog
|
<v-dialog
|
||||||
@ -49,14 +47,12 @@
|
|||||||
</v-btn>
|
</v-btn>
|
||||||
</template>
|
</template>
|
||||||
<v-card-text class="pa-0">
|
<v-card-text class="pa-0">
|
||||||
<overlay-scrollbars style="height: calc(var(--app-height) - 48px)" :options="scrollbarOptions">
|
|
||||||
<codemirror-async
|
<codemirror-async
|
||||||
v-if="show"
|
v-if="show"
|
||||||
ref="editor"
|
ref="editor"
|
||||||
v-model="sourcecode"
|
v-model="sourcecode"
|
||||||
:name="filename"
|
:name="filename"
|
||||||
:file-extension="fileExtension"></codemirror-async>
|
:file-extension="fileExtension"></codemirror-async>
|
||||||
</overlay-scrollbars>
|
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
</panel>
|
</panel>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user