diff --git a/client/src/components/level.css b/client/src/components/level.css index 7439e7c..3d39dfb 100644 --- a/client/src/components/level.css +++ b/client/src/components/level.css @@ -300,12 +300,15 @@ td code { #menu-btn { padding: 0; font-size: 1.3rem; + margin-left: .5em; + margin-right: 0; } -.menu.dropdown .svg-inline--fa { - width: 1.8rem; +#home-btn { + margin-right: .5em; + margin-left: 0; } -.nav-btns .btn { - margin-left: .5em; +.menu.dropdown .svg-inline--fa { + width: 1.8rem; } diff --git a/client/src/components/level.tsx b/client/src/components/level.tsx index 86170a8..5e6379c 100644 --- a/client/src/components/level.tsx +++ b/client/src/components/level.tsx @@ -464,65 +464,103 @@ function LevelAppBar({isLoading, levelId, worldId, levelTitle, toggleImpressum, const [navOpen, setNavOpen] = React.useState(false) return
- {!mobile && -
- - {gameInfo.data?.worlds.nodes[worldId].title && `World: ${gameInfo.data?.worlds.nodes[worldId].title}`} - -
- } -
- - {levelTitle} - -
-
- {pageNumber == 0 ? - - : pageNumber == 1 && - - } - -
-
- {levelId < gameInfo.data?.worldSize[worldId] && - - } - {levelId > 0 && <> - + : pageNumber == 1 && + + } + - } - - - +
+
+ {levelId < gameInfo.data?.worldSize[worldId] && + + } + {levelId > 0 && <> + + } + + + +
+ + : + <> +
+ + + {gameInfo.data?.worlds.nodes[worldId].title && `World: ${gameInfo.data?.worlds.nodes[worldId].title}`} + +
+
+ + {levelTitle} + +
+
+ {levelId > 0 && <> + + } + {levelId < gameInfo.data?.worldSize[worldId] && + + } + + +
+ + }
- - } function useLevelEditor(worldId: string, levelId: number, codeviewRef, initialCode, initialSelections, onDidChangeContent, onDidChangeSelection) {