🔥 remove add file/folder buttons

This commit is contained in:
2026-03-03 19:52:05 +10:00
parent 694482ba26
commit 682623849e
2 changed files with 7 additions and 46 deletions

View File

@@ -18,29 +18,6 @@
text-transform: uppercase;
}
.file-tree-header-actions {
display: flex;
align-items: center;
gap: 2px;
}
.file-tree-action-btn {
background: none;
border: none;
cursor: pointer;
font-size: 15px;
line-height: 1;
padding: 0 3px;
opacity: 0.55;
transition: opacity 0.15s;
flex-shrink: 0;
color: var(--text-muted);
}
.file-tree-action-btn:hover {
opacity: 1;
}
.file-tree-bible-btn {
background: none;
border: none;

View File

@@ -64,21 +64,6 @@ export function FileTree(): JSX.Element {
<nav className="file-tree">
<div className="file-tree-header">
<span>HOHOFF</span>
<div className="file-tree-header-actions">
<button
className="file-tree-action-btn"
onClick={() => { setCreatingRoot('file'); setCreateRootValue('') }}
title="New File"
>
+
</button>
<button
className="file-tree-action-btn"
onClick={() => { setCreatingRoot('dir'); setCreateRootValue('') }}
title="New Folder"
>
</button>
<button
className="file-tree-bible-btn"
onClick={handleOpenStoryBible}
@@ -87,7 +72,6 @@ export function FileTree(): JSX.Element {
📖
</button>
</div>
</div>
<div
className="file-tree-list"
onContextMenu={(e) => { e.preventDefault(); setRootMenuPos({ x: e.clientX, y: e.clientY }) }}