Skip to content

Commit

Permalink
Add workspace group in Monaco explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
hopperelec committed May 29, 2024
1 parent 406b865 commit 5d9a702
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/lib/components/monaco-viewer/MonacoViewer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ $: if (files && !activeFile) {
{/each}
</ul>
<div id="explorer">
<p>WORKSPACE</p>
<ul>
{#each files as file}
<li>
Expand Down Expand Up @@ -145,6 +146,28 @@ $: if (files && !activeFile) {
font-size: 13px;
border-right: var(--border);
line-height: 22px;
& > p {
font-size: 11px;
font-weight: 700;
/* Roughly re-create the dropdown icon */
&::before {
content: "";
display: inline-block;
border: solid white;
border-width: 0 1px 1px 0;
height: 6px;
width: 6px;
margin-left: 7px;
margin-right: 7px;
transform: translateY(-3px) rotate(45deg);
}
}
& > ul > li {
padding-left: 13px;
}
}
#editor {
Expand Down

0 comments on commit 5d9a702

Please sign in to comment.