fix: table style and empty scoreboard page

pull/1/head
Antonio De Lucreziis 2 years ago
parent 515280621d
commit 0955f18e04

@ -50,6 +50,7 @@ export const ScoresPage = () => {
<Header /> <Header />
<main class="page-scores"> <main class="page-scores">
<div class="subtitle">Classifica</div> <div class="subtitle">Classifica</div>
{orderedStats.length > 0 ? (
<div class="scrollable"> <div class="scrollable">
<div class="table"> <div class="table">
<div class="cell header"> <div class="cell header">
@ -99,6 +100,11 @@ export const ScoresPage = () => {
))} ))}
</div> </div>
</div> </div>
) : (
<>
<p>Nessuno ha ancora inviato soluzioni</p>
</>
)}
</main> </main>
</> </>
) )

@ -290,7 +290,6 @@ $heading-scale: 1.25;
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
} }
} }
.text-body { .text-body {
@ -479,9 +478,11 @@ main.page-scores {
&:first-child { &:first-child {
border-top-left-radius: 0.5rem; border-top-left-radius: 0.5rem;
} }
&:last-child { &:last-child {
border-top-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem;
} }
&.last-col { &.last-col {
border-right: none; border-right: none;
} }

Loading…
Cancel
Save