From 7f80bf6c16d35da1a982d7002e0606a6de8221c6 Mon Sep 17 00:00:00 2001 From: Ivan Procaccini Date: Mon, 20 May 2024 16:05:36 +0100 Subject: [PATCH] style: fix top bar at the top and refine paddings to align top bar with main content --- src/ExamRoot.tsx | 5 ++++- src/components/NavBar/index.tsx | 38 ++++++++++++++++++++------------- 2 files changed, 27 insertions(+), 16 deletions(-) diff --git a/src/ExamRoot.tsx b/src/ExamRoot.tsx index a35afdc..ca23b24 100644 --- a/src/ExamRoot.tsx +++ b/src/ExamRoot.tsx @@ -1,3 +1,4 @@ +import { Section } from '@radix-ui/themes' import React, { FC } from 'react' import { Outlet } from 'react-router-dom' @@ -7,7 +8,9 @@ const ExamRoot: FC = () => { return ( <> - +
+ +
) } diff --git a/src/components/NavBar/index.tsx b/src/components/NavBar/index.tsx index e08c30d..720f768 100644 --- a/src/components/NavBar/index.tsx +++ b/src/components/NavBar/index.tsx @@ -1,4 +1,4 @@ -import { Section, TabNav } from '@radix-ui/themes' +import { Container, Section, TabNav } from '@radix-ui/themes' import React, { FC } from 'react' import { useLocation } from 'react-router-dom' @@ -10,21 +10,29 @@ const NavBar: FC = ({ questionCount }) => { const { pathname } = useLocation() return ( -
- - - Frontcover - - {[...Array(questionCount).keys()].map((i) => ( - - {`Question ${i + 1}`} +
+ + + + Frontcover - ))} - + {[...Array(questionCount).keys()].map((i) => ( + + {`Question ${i + 1}`} + + ))} + +
) }