Skip to content

Commit

Permalink
fix: dialog width on small screens (#58)
Browse files Browse the repository at this point in the history
Fixes #52
  • Loading branch information
CostasAK authored Jul 26, 2024
1 parent 7b5e527 commit 915152c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/routes/checklist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,18 +292,20 @@ function Todo({ name, reset, period = 0 }: TodoProps) {
key={name}
htmlFor={name}
className={cn(
"flex cursor-pointer flex-row items-center gap-2 border-t border-t-neutral-725 p-4 transition-all hover:bg-neutral-750 active:transition-none",
"flex cursor-pointer flex-row flex-wrap items-center gap-2 border-t border-t-neutral-725 p-4 transition-all hover:bg-neutral-750 active:transition-none",
completion > 0 && "italic opacity-50",
)}
style={{ order: nextReset / MINUTE + (completion > 0 ? 10 * YEAR : 0) }}
>
<Checkbox
id={name}
onCheckedChange={handleChange}
checked={completion > 0}
/>
<span>{name}</span>
<span className="mt-auto grow self-end text-right text-sm font-normal text-neutral-400">
<div className="flex flex-row items-center gap-2">
<Checkbox
id={name}
onCheckedChange={handleChange}
checked={completion > 0}
/>
<span>{name}</span>
</div>
<span className="mt-auto grow self-end text-right text-sm font-normal leading-none text-neutral-400">
{nextReset - now > 0 ? humanizeDuration(nextReset - now, true) : "now"}
</span>
</Label>
Expand Down

0 comments on commit 915152c

Please sign in to comment.