Repository navigation
Conversation
Overlapping events used to split the day column into equal slots, so a long event got squeezed by any short event during it. Now the earliest (or longest) event keeps the full width and later overlapping events are drawn on top of it, indented like in desktop calendars. Events starting at about the same time leave the left half of the event below visible, so its title stays readable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Fossify accepts code contributions only for open issues labeled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When events overlap in the weekly view, they split the day column into equal slots. A long event gets squeezed by any short event during it. For example, a full-day "Work" block shrinks to half width because of a 45 minute lunch. Desktop calendars (macOS, Google) stack overlapping events instead, and that looks much cleaner.
This PR stacks them:
Comparisons
All six scenarios come from the same test week, shown on a phone in the 7-day view.
overlaplayout algorithm, which is modelled on Google Calendar.Both libraries were rendered at the phone's column width and density.
Known limitation: with four or more events starting at the same time, the deepest ones stack at the 20% cap and only the top one is visible there. The others can still be reached from the day and list views.
Testing
assembleFossDebug,detektandlintFossDebugpass.Reviewed with sol-pre-commit-review: 3 rounds with gpt-6.1-sol on high. Sol verdict: approved
Created with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code