Skip to content

Commit

Permalink
fix(Editor): fix editor width when sidebar is hidden
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Sep 15, 2024
1 parent 682a3dc commit d8cd8ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/TheEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
:name="filename"
:file-extension="fileExtension"
class="codemirror"
:class="{ withSidebar: fileStructureSidebar }"
@lineChange="lineChanges" />
<div v-if="fileStructureSidebar" class="d-none d-md-flex structure-sidebar">
<v-treeview
Expand Down Expand Up @@ -525,6 +526,10 @@ export default class TheEditor extends Mixins(BaseMixin) {
@media screen and (min-width: 960px) {
.codemirror {
width: 100%;
}
.codemirror.withSidebar {
width: calc(100% - 300px);
}
}
Expand Down

0 comments on commit d8cd8ff

Please sign in to comment.