fix: problem text wrapping, profile item ordering

pull/1/head
Antonio De Lucreziis 2 years ago
parent 28a1a85531
commit 46a5d1dde7

@ -12,11 +12,8 @@ const SolutionList = ({ user }: { user: User }) => {
return ( return (
<div class="solution-list"> <div class="solution-list">
{solutions.map(({ forProblem, content, status }) => ( {solutions.map(solution => (
<Solution <Solution {...solution} adminControls={isAdministrator(user.role)} />
{...{ forProblem, content, status }}
adminControls={isAdministrator(user.role)}
/>
))} ))}
</div> </div>
) )
@ -38,10 +35,10 @@ export const ProfilePage = ({}) => {
user && ( user && (
<main class="page-profile"> <main class="page-profile">
<Header {...{ user }} /> <Header {...{ user }} />
<div class="subtitle">Profilo</div>
<button onClick={handleLogout}>Logout</button>
<div class="subtitle">Le tue soluzioni</div> <div class="subtitle">Le tue soluzioni</div>
<SolutionList {...{ user }} /> <SolutionList {...{ user }} />
<div class="subtitle">Altro</div>
<button onClick={handleLogout}>Logout</button>
</main> </main>
) )
) )

@ -467,6 +467,8 @@ header {
overflow-x: auto; overflow-x: auto;
border-radius: 0.25rem; border-radius: 0.25rem;
white-space: break-spaces;
} }
padding-right: 0.5rem; padding-right: 0.5rem;

Loading…
Cancel
Save