From 3aac2c64297789cd4e2e2ae76006be66ecfc2b38 Mon Sep 17 00:00:00 2001 From: lauralog Date: Mon, 24 Jun 2024 15:36:50 +0200 Subject: [PATCH] fix img mixin --- app/sass/lib/_mixins.sass | 4 ++-- app/sass/partials/_team.sass | 3 ++- constants/team.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/sass/lib/_mixins.sass b/app/sass/lib/_mixins.sass index 9e63c24..0d1a5b4 100644 --- a/app/sass/lib/_mixins.sass +++ b/app/sass/lib/_mixins.sass @@ -26,8 +26,8 @@ box-shadow: 0px 10px 13px -7px rgba(0,0,0,0.08) //IMAGES -@mixin img_cover() - @apply overflow-hidden +@mixin img_cover() // hay que ponérsela al padre de la etiqueta + @apply overflow-hidden flex img @apply h-full w-full object-cover diff --git a/app/sass/partials/_team.sass b/app/sass/partials/_team.sass index b399575..515b2d8 100644 --- a/app/sass/partials/_team.sass +++ b/app/sass/partials/_team.sass @@ -20,7 +20,8 @@ .mate_img @apply max-h-[230px] - @Iinclude img_cover() + a + @include img_cover() .mate_info diff --git a/constants/team.js b/constants/team.js index f495a6b..f41895e 100644 --- a/constants/team.js +++ b/constants/team.js @@ -8,7 +8,7 @@ export const myteam = { position: "IP1", translationKey: "", // "description":"description", - photo: "/assets/img/team/avatar.png", + photo: "./../assets/img/team/avatar.png", // "github":"github", // "email": "mail", center: "UC3M",