From 9f5a01ad841946e251b3be650d504e6bfa6e1f20 Mon Sep 17 00:00:00 2001 From: Juan Convers Date: Tue, 27 Aug 2024 18:09:21 +0200 Subject: [PATCH] Fix aspect ratio of avatar in navigation menu Close: #747 --- assets/components/atoms/nav-user/nav-user.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/components/atoms/nav-user/nav-user.scss b/assets/components/atoms/nav-user/nav-user.scss index d4022355..526e7a5d 100644 --- a/assets/components/atoms/nav-user/nav-user.scss +++ b/assets/components/atoms/nav-user/nav-user.scss @@ -8,6 +8,8 @@ --avatar-size: 2.5rem; flex-basis: var(--avatar-size); width: var(--avatar-size); + object-fit: cover; + height: var(--avatar-size); @include media-breakpoint-up(sm) { --avatar-size: 2.625rem; @@ -130,4 +132,4 @@ } } } -} \ No newline at end of file +}