fix(calendar): redesign cell layout with rows for desktop

This commit is contained in:
Victor Sales 2025-10-12 00:58:36 +03:00
parent f2c7382729
commit b40ef9f3dc

View file

@ -5,7 +5,7 @@
.cell {
position: relative;
display: flex;
flex-direction: column;
flex-direction: row;
justify-content: space-between;
gap: 0.5rem;
background-color: var(--overlay-color);
@ -28,7 +28,7 @@
.heading {
position: relative;
height: 100%;
width: 60%;
display: flex;
align-items: start;
padding: 0;
@ -53,7 +53,8 @@
display: flex;
flex-direction: row;
gap: 1rem;
padding: 0 0.5rem 0.5rem 0.5rem;
padding: 0.1rem;
width: 90%;
.item {
flex: none;
@ -63,7 +64,6 @@
height: 100%;
aspect-ratio: 2 / 3;
border-radius: var(--border-radius);
height: 100%;
max-height: clamp(8rem, 25vh, 14rem);
.icon {
@ -134,47 +134,35 @@
}
}
@media only screen and (max-height: @minimum) and (orientation: portrait) {
@media only screen and (orientation: portrait) {
.cell {
flex-direction: column;
display: grid;
.heading {
justify-content: center;
}
.items {
display: none;
padding: 1px;
gap: 0.15rem;
justify-content: space-evenly;
.item{
width: 80%;
}
}
.more {
display: flex;
}
}
}
@media only screen and (max-height: @xsmall) and (max-width: @xsmall) {
.cell {
gap: 0;
.heading {
.day {
font-size: 0.875rem;
}
}
.items {
padding: 0.25rem;
display: none;
.item {
pointer-events: none;
border-radius: calc(var(--border-radius) / 2);
}
}
}
}
@media only screen and (max-height: @small) and (max-width: @small) {
@media only screen and (max-height: @medium) and (max-width: @medium) and (orientation: landscape) {
.cell {
gap: 0;
flex-direction: row;
.heading {
.day {
@ -183,13 +171,12 @@
}
.items {
padding: 0.25rem;
width: 100%;
height: 100%;
.item {
pointer-events: none;
border-radius: calc(var(--border-radius) / 2);
width: 80%;
}
}
}