Client - improve calendar display on mobile + fix

This commit is contained in:
Sam
2021-10-01 17:40:58 +02:00
parent 5856599377
commit 7157f53298
15 changed files with 59 additions and 10 deletions

View File

@ -7,7 +7,7 @@
<img
class="profile-img"
v-if="userPictureUrl !== ''"
alt="User picture"
:alt="t('user.USER_PICTURE')"
:src="userPictureUrl"
/>
<div v-else class="no-picture">

View File

@ -157,6 +157,13 @@
}
.calendar-cell:last-child {
border-right: 0;
@media screen and (max-width: $small-limit) {
.calendar-workouts {
.more-workouts {
left: -45px;
}
}
}
}
.disabled-cell {
color: var(--app-color-light);
@ -168,5 +175,15 @@
background: var(--calendar-today-color);
}
}
@media screen and (max-width: $small-limit) {
.calendar-row:last-child {
.calendar-workouts {
.more-workouts {
top: inherit;
bottom: 20px;
}
}
}
}
}
</style>

View File

@ -73,8 +73,9 @@
@media screen and (max-width: $small-limit) {
.sport-img {
width: 14px;
height: 14px;
padding: 3px;
width: 20px;
height: 20px;
}
sup {
.custom-fa-small {

View File

@ -112,7 +112,7 @@
left: 0;
min-width: 60px;
@media screen and (max-width: $small-limit) {
min-width: 40px;
min-width: 70px;
}
margin-bottom: 20px;

View File

@ -71,8 +71,8 @@
font-size: 0.9em;
.sport-img {
padding-right: $default-padding;
height: 18px;
width: 18px;
height: 20px;
width: 20px;
}
}
.card-content {
@ -93,6 +93,16 @@
}
}
}
@media screen and (max-width: $small-limit) {
font-size: 1em;
.card-title {
font-size: 1em;
.sport-img {
height: 22px;
width: 22px;
}
}
}
}
}
</style>

View File

@ -40,7 +40,7 @@
<img
v-if="authUserPictureUrl !== ''"
class="nav-profile-user-img"
alt="User picture"
:alt="t('user.USER_PICTURE')"
:src="authUserPictureUrl"
/>
<div v-else class="no-picture">