refactor(Calendar): improve responsive layout

This commit is contained in:
Tim 2024-09-24 08:56:35 +02:00
parent 184f191218
commit 3870c6a439
2 changed files with 24 additions and 2 deletions

View file

@ -32,6 +32,6 @@
@media only screen and (max-width: @xsmall) and (orientation: landscape) {
.list {
width: 15rem;
display: none;
}
}

View file

@ -28,9 +28,11 @@
.heading {
flex: none;
position: relative;
display: flex;
padding: 1rem 1rem 0 1rem;
.day {
flex: none;
position: relative;
display: flex;
align-items: center;
@ -136,6 +138,12 @@
@media only screen and (orientation: portrait) {
.cell {
gap: 0;
.heading {
justify-content: center;
}
.items {
display: none;
}
@ -152,7 +160,21 @@
align-items: center;
.heading {
padding: 0;
padding: 0 0 0 1rem;
}
}
}
@media only screen and (max-height: @xsmall) and (orientation: landscape) {
.cell {
gap: 0;
.items {
display: none;
}
.more {
display: flex;
}
}
}