Skip to content

Commit

Permalink
Reformat file.
Browse files Browse the repository at this point in the history
  • Loading branch information
CF3B5 committed Jul 14, 2024
1 parent a2b1391 commit 91b3c9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions src/components/TheEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@
</v-btn>
</template>
<v-card-text class="pa-0">
<div v-if="fileStructureSidebar" class="d-none d-md-flex float-right structure-sidebar cm-editor ͼo">
<div class="cm-scroller" style="width: 100%;">
<div
v-if="fileStructureSidebar"
class="d-none d-md-flex float-right structure-sidebar cm-editor ͼo">
<div class="cm-scroller" style="width: 100%">
<v-treeview
activatable
open-on-click
Expand All @@ -70,8 +72,7 @@
:open="structureOpen"
item-key="line"
:items="configFileStructure"
@update:active="activeChanges"
>
@update:active="activeChanges">
<template #label="{ item }">
<div :class="item.type == 'item' ? 'ͼp' : 'ͼt'">{{ item.name }}</div>
</template>
Expand All @@ -90,7 +91,7 @@
</v-treeview>
</div>
</div>
<div :class="fileStructureSidebar?'structure':''">
<div :class="fileStructureSidebar ? 'structure' : ''">
<codemirror-async
v-if="show"
ref="editor"
Expand Down Expand Up @@ -512,7 +513,7 @@ export default class TheEditor extends Mixins(BaseMixin) {
@media screen and (min-width: 960px) {
.structure {
margin-right: 300px
margin-right: 300px;
}
.structure-sidebar {
width: 300px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/inputs/Codemirror.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default class Codemirror extends Mixins(BaseMixin) {
const l: any = this.cminstance?.state?.doc.line(line)
this.cminstance?.dispatch({
selection: { head: l.from, anchor: l.to },
scrollIntoView: true
scrollIntoView: true,
})
}
}
Expand Down

0 comments on commit 91b3c9d

Please sign in to comment.