Make project panel resizable

This commit is contained in:
Misode
2024-11-20 20:28:54 +01:00
parent 22e787bf4e
commit 56b2e1a382
3 changed files with 56 additions and 11 deletions

View File

@@ -133,7 +133,7 @@ export function ProjectPanel() {
</div>
}, [service, actions, projectRoot, projectUri])
return <>
return <div class="panel-content">
<div class="project-controls">
<BtnMenu icon="chevron_down" label={project.name} tooltip={locale('switch_project')} tooltipLoc="se">
{projects.map(p => <Btn label={p.name} active={p.name === project.name} onClick={() => changeProject(p.name)} />)}
@@ -152,5 +152,5 @@ export function ProjectPanel() {
: <TreeView entries={entries} split={path => path.split('/')} group={FolderEntry} leaf={FileEntry} />}
</div>
<a ref={download} style="display: none;"></a>
</>
</div>
}