Skip to content

Commit

Permalink
Improve profile image layout on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbrucker committed Nov 9, 2023
1 parent d99fc45 commit f54fb24
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/my-farmer/my-farmer.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</ngb-alert>
</div>
<div class="row mb-1">
<div class="col-auto my-auto pe-0" *ngIf="accountImageUrl$ | async">
<div class="col-auto my-auto pe-0 profile-picture-image-wrapper" *ngIf="accountImageUrl$ | async">
<img [src]="accountImageUrl$ | async" class="img-fluid rounded profile-picture-image">
</div>
<div class="col col-md">
Expand Down
11 changes: 10 additions & 1 deletion src/app/my-farmer/my-farmer.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,20 @@
max-height: 5.6rem;
}
}
@media (max-width:472px) {
@media (max-width:512px) {
.profile-picture-image {
max-height: 7.2rem;
}
}
@media (max-width:454px) {
.profile-picture-image-wrapper {
width: 100%;
text-align: center;
}
.profile-picture-image {
margin-bottom: 0.5rem;
}
}
@media (max-width:576px) {
.nav-tabs-no-border {
border: unset;
Expand Down

0 comments on commit f54fb24

Please sign in to comment.