diff --git a/packages/web/components/page_navigator.tsx b/packages/web/components/page_navigator.tsx index 9e7fd857..0b5191b8 100644 --- a/packages/web/components/page_navigator.tsx +++ b/packages/web/components/page_navigator.tsx @@ -30,6 +30,8 @@ export function PageNavigator({ if (currentPage && currentPage.includes("/")) { const pieces = currentPage.split("/"); completePrefix = pieces.slice(0, pieces.length - 1).join("/") + "/"; + } else if (currentPage && currentPage.includes(" ")) { + completePrefix = currentPage.split(" ")[0] + " "; } return ( void; + onHomeClick: () => void; onActionClick: () => void; lhs?: React.ReactNode; rhs?: React.ReactNode; @@ -46,10 +48,19 @@ export function TopBar({
+ diff --git a/packages/web/editor.tsx b/packages/web/editor.tsx index f089be96..fd15c266 100644 --- a/packages/web/editor.tsx +++ b/packages/web/editor.tsx @@ -656,6 +656,9 @@ export class Editor { onClick={() => { dispatch({ type: "start-navigate" }); }} + onHomeClick={() => { + editor.navigate("index"); + }} onActionClick={() => { dispatch({ type: "show-palette" }); }} diff --git a/packages/web/styles/main.scss b/packages/web/styles/main.scss index c7567702..1f8ef80c 100644 --- a/packages/web/styles/main.scss +++ b/packages/web/styles/main.scss @@ -112,35 +112,13 @@ body { } .actions { text-align: right; - width: 40px; - ul { - list-style: none; - margin-left: 0; - padding-left: 0; - margin-top: 0; - list-style: none; - background: #fff; - border: #000 1px solid; - text-align: left; - - a { - padding: 3px; - font-family: var(--ui-font); - font-size: 50%; - text-decoration: none; - color: #000; - } - - li { - padding-left: 10px; - padding-right: 10px; - padding-bottom: 5px; - } - - li:hover { - background-color: #4d8dff12; - } + button { + border: 1px solid #7897d0; + border-radius: 3px; + margin: 3px; + padding: 5px; + background-color: #e6e6e6; } } }