feat: always show scrollbar in the editor (#791)

This commit is contained in:
Stefan Dej 2022-05-11 20:29:43 +02:00 committed by GitHub
parent 595b3f1d1c
commit fcc342e422
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@
</v-btn>
</template>
<v-card-text class="pa-0">
<overlay-scrollbars style="height: calc(var(--app-height) - 48px)" :options="{}">
<overlay-scrollbars style="height: calc(var(--app-height) - 48px)" :options="scrollbarOptions">
<codemirror-async
v-if="show"
ref="editor"
@ -161,6 +161,8 @@ export default class TheEditor extends Mixins(BaseMixin) {
mdiFileDocumentEditOutline = mdiFileDocumentEditOutline
mdiFileDocumentOutline = mdiFileDocumentOutline
private scrollbarOptions = { scrollbars: { autoHide: 'never' } }
declare $refs: {
editor: Codemirror
}