Skip to content

Commit

Permalink
change to flex
Browse files Browse the repository at this point in the history
  • Loading branch information
CF3B5 committed Jul 19, 2024
1 parent 7bf3750 commit 563c867
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions src/components/TheEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
v-if="configFileStructure"
text
tile
target="_blank"
class="d-none d-md-flex"
@click="showFileStructure()">
<v-icon small class="mr-1">{{ mdiFormatListCheckbox }}</v-icon>
Expand All @@ -58,11 +57,18 @@
<v-icon>{{ mdiCloseThick }}</v-icon>
</v-btn>
</template>
<v-card-text class="pa-0">
<v-card-text class="pa-0 d-flex">
<codemirror-async
class="codemirror"
v-if="show"

Check warning on line 63 in src/components/TheEditor.vue

View workflow job for this annotation

GitHub Actions / ESLint

src/components/TheEditor.vue#L63

Attribute "v-if" should go before "class" (vue/attributes-order)
ref="editor"

Check warning on line 64 in src/components/TheEditor.vue

View workflow job for this annotation

GitHub Actions / ESLint

src/components/TheEditor.vue#L64

Attribute "ref" should go before "class" (vue/attributes-order)
v-model="sourcecode"

Check warning on line 65 in src/components/TheEditor.vue

View workflow job for this annotation

GitHub Actions / ESLint

src/components/TheEditor.vue#L65

Attribute "v-model" should go before "class" (vue/attributes-order)
:name="filename"
:file-extension="fileExtension"
@lineChange="lineChanges" />
<div
v-if="fileStructureSidebar"
class="d-none d-md-flex float-right structure-sidebar cm-editor ͼo">
<div class="cm-scroller cursor-pointer" style="width: 100%">
class="d-none d-md-flex cursor-pointer cm-editor ͼo structure-sidebar">
<v-treeview
activatable
dense
Expand All @@ -88,16 +94,6 @@
</v-btn>
</template>
</v-treeview>
</div>
</div>
<div :class="fileStructureSidebar ? 'structure' : ''">
<codemirror-async
v-if="show"
ref="editor"
v-model="sourcecode"
:name="filename"
:file-extension="fileExtension"
@lineChange="lineChanges" />
</div>
</v-card-text>
</panel>
Expand Down Expand Up @@ -510,13 +506,13 @@ export default class TheEditor extends Mixins(BaseMixin) {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Cpath d='M15.88 8.29L10 14.17l-1.88-1.88a.996.996 0 1 0-1.41 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7a.996.996 0 0 0 0-1.41c-.39-.39-1.03-.39-1.42 0z' fill='%23fffff'/%3E %3C/svg%3E");
}
@media screen and (min-width: 960px) {
.structure {
margin-right: 300px;
}
.structure-sidebar {
width: 300px;
overflow-y: auto;
@media screen and (min-width: 960px){
.codemirror {
width: calc(100% - 300px);
}
}
.structure-sidebar {
width: 300px;
overflow-y: auto;
}
</style>

0 comments on commit 563c867

Please sign in to comment.