Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Short events are almost invisible in weekly/daily view #1192

Closed
tadzik opened this issue Mar 11, 2020 · 5 comments · Fixed by #1249
Closed

Short events are almost invisible in weekly/daily view #1192

tadzik opened this issue Mar 11, 2020 · 5 comments · Fixed by #1249

Comments

@tadzik
Copy link

tadzik commented Mar 11, 2020

With the event short enough (15 minutes or less) it becomes almost invisible, and certainly unreadable in weekly/daily view with default styling.

Stackblitz example: https://stackblitz.com/edit/angular-bshxze?file=demo%2Fcomponent.ts (forked off of kitchen-sink demo).

Screenshots

2020-03-11-161926_1515x479_scrot

Versions

Reproducible on 0.28.5 (latest at the time of writing) on both Angular 8 and 9.

@mattlewis92
Copy link
Owner

Hey there, thanks for opening an issue. It's certainly a bit of a weird UX, I think there should be an option to set the minimum height of events on the day and week view and this is something I'll work on adding.

In the meantime you can use a fake end date like this to set a minimum height of 30 pixels: https://stackblitz.com/edit/angular-bshxze-wccw8h?file=demo/component.ts

You could also use the hourSegments option to make each segment bigger: https://mattlewis92.github.io/angular-calendar/#/day-view-hour-split

Let me know if that works for you 😄

@mattlewis92 mattlewis92 added this to the 0.29 milestone Mar 15, 2020
@tadzik
Copy link
Author

tadzik commented Mar 17, 2020

We already use fake end dates extensively for ical integration, so this feels right at home ;)

Thanks, and let me know if a builtin solution becomes available :)

mattlewis92 added a commit to mattlewis92/calendar-utils that referenced this issue May 3, 2020
mattlewis92 added a commit that referenced this issue May 3, 2020
BREAKING CHANGE: events on the week and day view will now always be at least 30 pixels high by default. To restore the old behaviour you can set `[minimumEventHeight]="1"`.

Closes #1192
@mattlewis92 mattlewis92 mentioned this issue May 3, 2020
@mattlewis92
Copy link
Owner

Hey there, I just released a beta of 0.29 with this fix. You can find instructions on how to update to it here: #1249 Please can you give it a try and let me know if it works for you, thanks! 😄

@tadzik
Copy link
Author

tadzik commented May 20, 2020

Yep, this fixes it for us :)

@mattlewis92
Copy link
Owner

Awesome, that's great to hear! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants