💄 window bar matches app

This commit is contained in:
2026-02-21 10:18:03 +10:00
parent 7a7b2732f7
commit 9bd46127a6
3 changed files with 27 additions and 1 deletions

View File

@@ -32,6 +32,9 @@ export default function App(): JSX.Element {
return (
<div className="app-layout">
<div className="app-titlebar">
<span className="app-titlebar-title">Hohoff Editor</span>
</div>
<aside className="sidebar">
<FileTree />
</aside>

View File

@@ -1,11 +1,33 @@
.app-layout {
display: grid;
grid-template-columns: 220px 1fr 340px;
grid-template-rows: 100vh;
grid-template-rows: 38px calc(100vh - 38px);
height: 100vh;
overflow: hidden;
}
.app-titlebar {
grid-column: 1 / -1;
display: flex;
align-items: center;
justify-content: center;
background: var(--sidebar-bg);
border-bottom: 1px solid var(--border);
/* Makes the entire bar draggable so the window can be moved */
-webkit-app-region: drag;
user-select: none;
position: relative;
}
.app-titlebar-title {
font-size: 12px;
font-family: var(--font-sans);
font-weight: 600;
letter-spacing: 0.08em;
color: var(--text-muted);
text-transform: uppercase;
}
/* ─── Sidebar ──────────────────────────────────────────────────── */
.sidebar {
background: var(--sidebar-bg);