Reorganize workspace layout and add new text button styling
This commit is contained in:
30
src/App.tsx
30
src/App.tsx
@@ -1442,19 +1442,7 @@ export default function App() {
|
|||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
<main className="workspace">
|
<main className="workspace">
|
||||||
{sidebarCollapsed ? (
|
<div className="workspace__body">
|
||||||
<div className="sidebar__footer sidebar__footer--collapsed">
|
|
||||||
<button
|
|
||||||
className="icon-button"
|
|
||||||
onClick={() => setSidebarCollapsed(false)}
|
|
||||||
aria-label="Expand sidebar"
|
|
||||||
title="Expand sidebar"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span className="icon-button__glyph" aria-hidden="true">▶</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
) : null}
|
|
||||||
{!selectedTextId ? (
|
{!selectedTextId ? (
|
||||||
<div className="empty-state">
|
<div className="empty-state">
|
||||||
<div className="empty-state__title">Create your first text</div>
|
<div className="empty-state__title">Create your first text</div>
|
||||||
@@ -1676,6 +1664,22 @@ export default function App() {
|
|||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
</div>
|
||||||
|
{sidebarCollapsed ? (
|
||||||
|
<div className="workspace__footer">
|
||||||
|
<div className="sidebar__footer sidebar__footer--collapsed">
|
||||||
|
<button
|
||||||
|
className="icon-button"
|
||||||
|
onClick={() => setSidebarCollapsed(false)}
|
||||||
|
aria-label="Expand sidebar"
|
||||||
|
title="Expand sidebar"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span className="icon-button__glyph" aria-hidden="true">▶</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
) : null}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{settingsOpen ? (
|
{settingsOpen ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user