Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Alba María Álvarez
/
front_recipes
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f39ba4c2
authored
Sep 05, 2025
by
Alba María Álvarez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
perf(RecipeCard): cambio para que cargue correctamente la imagen
parent
cf9395ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/components/RecipeCard.vue
src/components/RecipeCard.vue
View file @
f39ba4c2
...
...
@@ -3,7 +3,7 @@
<div
class=
"row g-0 h-100"
>
<div
class=
"col-md-5 d-flex align-items-stretch"
>
<img
:src=
"recipe.picture
!= null ? recipe.picture : 'src/assets/default-recipe.jpg'
"
:src=
"recipe.picture
? recipe.picture : defaultImage
"
class=
"img-fluid w-100 h-100 rounded-start"
style=
"object-fit: cover;"
:alt=
"recipe.name"
...
...
@@ -33,6 +33,7 @@
<
script
setup
>
import
{
useRecipeStore
}
from
'@/stores/recipeStore'
;
import
defaultImage
from
'@/assets/default-recipe.jpg'
;
const
props
=
defineProps
({
recipe
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment