Replies: 2 comments
-
Never mind, I needed to write it down before to see it. I use https://github.com/flixlix/shadcn-date-picker and it is hardcoded in the style. Sorry for the noise. |
Beta Was this translation helpful? Give feedback.
0 replies
-
All good @Ganbin |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm using a calendar with
numberOfMonths={2}
andshowWeekNumber
. However, the two months feel too close together, so I tried adding some spacing usinggap
,margin
, andpadding
within themonths
classNames
. The issue is that while the spacing applies, the main container doesn’t adjust accordingly, causing the second month to overflow.I inspected the structure and found that the
div
with therdp-root
class has an inlinestyle="width: 497.6px;"
, which seems to be dynamically calculated by the DayPicker component. Because of this, any modifications to inner elements lead to overflow, as the container width remains fixed.Additionally, I added a
margin: 0.5rem
to my customWeekNumber
component, and even that small adjustment causes slight overflow. It’s not immediately noticeable, but it confirms that the main container doesn’t account for internal spacing.Is there a way to introduce spacing between the months without breaking the layout?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions