Skip to content

Conversation

@FrediWa
Copy link
Contributor

@FrediWa FrediWa commented Jul 11, 2024

Description

Nothing stops the user from setting more than 7 weekdays, this PR renders only the first 7 of the given weekdays.

Weekday items are given a width of 100%/7 meaning that the are aligned even with less than 7 items, but when there are 8 or more, the width exceeds 100% and the parent container's flexbox squeezes them together, misaligning the weekdays from the dates.

Fixes part of vaadin/flow-components#6353

Related PR: vaadin/flow-components#6432

Type of change

  • Bugfix

@sonarqubecloud
Copy link

@sissbruecker sissbruecker merged commit 943c58b into main Jul 12, 2024
@sissbruecker sissbruecker deleted the fix/render-7-weekdays branch July 12, 2024 06:42
sissbruecker pushed a commit that referenced this pull request Jul 12, 2024
Co-authored-by: Fredi Wasström <fredrik.wasstrom@gmail.com>
web-padawan pushed a commit that referenced this pull request Jul 12, 2024
Co-authored-by: Fredi Wasström <fredrik.wasstrom@gmail.com>
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.5.0.alpha5 and is also targeting the upcoming stable 24.5.0 version.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants