fix: displays complete marks from other users #156

Merged
eugene merged 2 commits from issue-155 into staging 2024-08-21 07:32:15 +00:00
2 changed files with 16 additions and 2 deletions
Showing only changes of commit 23a7dc4269 - Show all commits

View File

@ -145,10 +145,19 @@ export const MainLayout = () => {
if (isLoading) return <LoadingSpinner desc={loadingSpinnerDesc} />
const isDev = import.meta.env.MODE === 'development'
return (
<>
<AppBar />
<main className={styles.main}>
<main
className={styles.main}
// Add dev debug flag to show special dev css
// (visible marks border on verify)
{...(isDev && {
'data-dev': true
})}
>
<Outlet />
</main>
<Footer />

View File

@ -77,9 +77,14 @@
.mark {
position: absolute;
border: 1px dotted black;
display: flex;
justify-content: center;
align-items: center;
}
[data-dev='true'] {
.mark {
border: 1px dotted black;
}
}