Skip to content

Commit

Permalink
fix: made the month height value a variable for self documenting it's…
Browse files Browse the repository at this point in the history
… purpose
  • Loading branch information
adamleithp committed Dec 16, 2024
1 parent 5811973 commit 1a58dca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/lib/lemon-ui/LemonCalendar/LemonCalendar.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.LemonCalendar {
--lemon-calendar-month-height: 305px;
--lemon-calendar-row-gap: 2px;
--lemon-calendar-day-width: 40px;
--lemon-calendar-today-radius: 2px;
Expand All @@ -7,7 +8,8 @@
// Tricky: needs to match the equivalent height button from LemonButton.scss
--lemon-calendar-time-button-height: 2.3125rem;

height: 305px;
// Force height for month so when swtiching to longer months, the height doesn't change
height: var(--lemon-calendar-month-height);

.LemonCalendar__month {
width: 100%;
Expand Down

0 comments on commit 1a58dca

Please sign in to comment.