Skip to content

Commit

Permalink
improve trip item styling
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Apr 9, 2024
1 parent 3da2776 commit bc4fc76
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions apps/trip-tick/web/src/components/trips/TripView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -446,17 +446,22 @@ function ChecklistItem({
<LiveUpdateTextField
value={description}
onChange={onDescriptionChanged}
placeholder="What is it?"
className="flex-1"
/>
) : (
<label>{description}</label>
<label className="font-bold">{description}</label>
)}
{onQuantityChanged && editing ? (
<NumberStepper
value={computedQuantity}
onChange={onQuantityChanged}
className="ml-auto"
/>
) : (
<span className="text-gray-7">×{computedQuantity}</span>
<span className="text-gray-7 ml-auto">
{completedQuantity} / {computedQuantity}
</span>
)}
{canEdit && (
<Button
Expand Down Expand Up @@ -489,7 +494,7 @@ function ChecklistItem({
{new Array(computedQuantity - 1).fill(0).map((_, i) => (
<div
key={i}
className="w-1px h-full bg-gray-4 absolute top-0 left-0"
className="w-1px h-full bg-gray-6 absolute top-0 left-0"
style={{
left: `${(100 / computedQuantity) * (i + 1)}%`,
}}
Expand Down

0 comments on commit bc4fc76

Please sign in to comment.