Skip to content

Clearer rendering of back-to-back and overlapping events - #17

Merged
vpetersson-bot merged 2 commits into
masterfrom
event-overlap
Nov 19, 2026
Merged

vpetersson-bot merged 2 commits into
masterfrom
event-overlap

Conversation

@vpetersson-bot

Copy link
Copy Markdown
Collaborator

Makes back-to-back and overlapping events read correctly, following feedback with a screenshot from a real calendar.

What was wrong

  1. Back-to-back events merged. Events that end as the next one starts (7:00–7:30, 7:30–8:45, 8:45…) touched exactly, and their leading colour bars joined into one strip. They looked like a single event.
  2. False overlaps. Overlaps were computed from each event's drawn height, which is at least 20pt so the title fits. A 15-minute event ending at 9:00 therefore "overlapped" one starting at 9:00, and both were squeezed to half width.
  3. Stacked translucency. Where blocks met or covered each other, the semi-transparent fills stacked into darker stripes, and the text underneath showed through.
  4. Short events overflowed. Two lines of title and time didn't fit a short block.

Changes

  • Real times for layout: DayColumn lays out events by their real start and end. Events are still drawn at least one line tall. If that covers the start of the next event, the next one is drawn on top (zIndex by start), as in Calendar.
  • Gaps: a 1pt gap above and below each event, so neighbours stay distinct.
  • Opaque fills: each event has a solid tint of its calendar colour, with a hairline edge in the card colour, in both light and dark.
  • Short events: below 32pt, the title and start time share one line.
  • Demo data: the sample calendar gains a back-to-back sequence with a 15-minute event, so CI screenshots cover this case.

🤖 Generated with Claude Code

vpetersson-bot and others added 2 commits November 19, 2026 12:44
- Overlaps are decided on real start and end times. A short event was
  laid out at its minimum (readable) height, so a 15-minute event ending
  as the next began counted as an overlap and both were squeezed side by
  side.
- A point of space above and below every event keeps back-to-back events
  apart; their colour bars no longer join into one.
- Events have opaque fills with a hairline edge, and later events are
  drawn on top, so an event that covers the start of the next one no
  longer stacks translucent colours or shows text through.
- Short events put the title and time on one line instead of
  overflowing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vpetersson-bot
vpetersson-bot merged commit 5a206b1 into master Nov 19, 2026
3 of 4 checks passed
@vpetersson-bot
vpetersson-bot deleted the event-overlap branch November 19, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant