Skip to content

Commit

Permalink
add calendar fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mgucma committed Oct 19, 2024
1 parent cf4344c commit 4d6f1e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ body {

.calendar {
display: flex;
flex-flow: wrap;
flex-flow: row wrap; /* Dodanie kierunku dla flex-flow */
box-sizing: border-box;
width: 7 * $cell-size + 6px;
width: calc(7 * #{$cell-size} + 6px); /* Poprawiona kalkulacja z użyciem calc */
gap: 1px;

& &__day {
display: none;
&__day {
display: none; /* Usunięto dodatkowe `&` w selektorze */
box-sizing: border-box;
background: #eee;
height: $cell-size;
Expand Down Expand Up @@ -62,7 +62,7 @@ body {

@each $day, $i in $days-of-the-week {
&--start-day-#{$day} :first-child {
margin-left: ($i * $cell-size) + $i;
margin-left: calc($i * #{$cell-size} + #{$i}px); /* Poprawiona kalkulacja z użyciem calc */
}
}
}

0 comments on commit 4d6f1e1

Please sign in to comment.