Skip to content

Commit

Permalink
chore: adjusting padding
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 6, 2023
1 parent b72082b commit 9d74448
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/PanelEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const panelInitEditor = computed(() => isMounted.value || {
@resized="endDragging"
>
<Pane
flex="~ col" h-full of-auto
flex="~ col" h-full of-auto py1
:size="ui.panelFileTree"
:style="panelInitFileTree"
>
Expand Down
7 changes: 7 additions & 0 deletions components/PanelEditorClient.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,16 @@ watch(
},
glyphMargin: false,
automaticLayout: true,
folding: false,
lineDecorationsWidth: 10,
lineNumbersMinChars: 3,
minimap: {
enabled: false,
},
padding: {
top: 8,
},
overviewRulerLanes: 0,
},
)
Expand Down
2 changes: 1 addition & 1 deletion components/PanelEditorFileSystemTree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const icon = computed(() => {
v-if="name"
hover="bg-active"
:style="{
paddingLeft: `${0.5 + 0.8 * (props.depth)}rem`,
paddingLeft: `${0.8 + 0.8 * (props.depth)}rem`,
}"
:class="isFileSelected ? 'bg-active' : 'saturate-0 text-faded'"
w-full flex items-center gap-2 px2 py1 text-left text-sm
Expand Down

0 comments on commit 9d74448

Please sign in to comment.