Skip to content

Commit

Permalink
fix: OnboardingSummary overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LynithDev committed Dec 14, 2024
1 parent 087f36d commit 1777a46
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions apps/frontend/src/ui/pages/onboarding/OnboardingSummary.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import AnimatedRoutes from '~ui/components/AnimatedRoutes';
import { OverlayScrollbarsComponent } from 'overlayscrollbars-solid';
import { For, Match, Switch } from 'solid-js';
import Onboarding, { OnboardingTaskStage } from './Onboarding';

Expand All @@ -16,15 +17,17 @@ function OnboardingSummary() {
<AnimatedRoutes>
<Switch>
<Match when={ctx.tasksStage() === OnboardingTaskStage.NotStarted}>
<div class="my-8 max-h-36 w-full flex flex-1 flex-col gap-y-2 rounded-lg bg-page-elevated p-4 font-mono">
<For each={ctx.getTasks()}>
{task => (
<span class="whitespace-pre text-lg text-fg-primary line-height-normal">
{task}
</span>
)}
</For>
</div>
<OverlayScrollbarsComponent class="my-8 max-h-36 w-full flex-1">
<div class="flex flex-1 flex-col gap-y-2 rounded-lg bg-page-elevated p-4 font-mono">
<For each={ctx.getTasks()}>
{task => (
<span class="whitespace-pre text-lg text-fg-primary line-height-normal">
{task}
</span>
)}
</For>
</div>
</OverlayScrollbarsComponent>
</Match>
<Match when>
<div class="my-8 max-h-36 w-full flex flex-1 flex-col gap-y-2">
Expand Down

0 comments on commit 1777a46

Please sign in to comment.