Pre-publish panel calendar and timepicker are misaligned at certain breakpoints #7863
Labels
[Feature] Document Settings
Document settings experience
[Type] Bug
An existing feature does not function as intended
Issue Overview
In the pre-publish panel, the calendar is left-aligned, whilst the timepicker below it is centre-aligned. This works at the majority of viewports where the sidebar is a controlled width overall, but falls apart at those viewports where the sidebar ends up being the full width of the screen:
Steps to Reproduce
This issue doesn't seem to happen elsewhere—the only other usage of the calendar component I could find was in the document settings sidebar, where the calendar appears as a popup instead:
Possible Solution
Basically, this would be resolved either by setting a max-width on the timepicker, or left-aligning the timepicker. The former is more elegant and in line with the calendar component as used elsewhere, but does rely on the calendar retaining a set width.
The text was updated successfully, but these errors were encountered: