Skip to content

Instantly share code, notes, and snippets.

@razvanFrandes
Last active January 13, 2023 16:23
Show Gist options
  • Save razvanFrandes/21eae3c952d51c08b0bacffcb8bb13d4 to your computer and use it in GitHub Desktop.
Save razvanFrandes/21eae3c952d51c08b0bacffcb8bb13d4 to your computer and use it in GitHub Desktop.
#js, add a rowHeight that is very big, mine works at 110px
<InfiniteCalendar rowHeight={110}>
#css Make the row smaller with css
.Cal__Month__row {
padding: 0;
margin: 0;
height: 60px !important;
line-height: 60px !important;
}
# Make the month label apear on top
.Cal__Month__label.Cal__Month__partialFirstRow,
.Cal__Month__label {
opacity: 1 !important;
width: 100%;
text-align: center;
top: -70px !important;
height: 0 !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment