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
6de31634
authored
Sep 04, 2025
by
Alba María Álvarez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
perf(Recipes): mejora visual de las tarjetas con las recetas
parent
6886296a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
src/components/RecipeCard.vue
src/views/Recipes.vue
src/components/RecipeCard.vue
View file @
6de31634
...
...
@@ -13,7 +13,7 @@
<div
class=
"card-body flex-grow-1 d-flex flex-column"
>
<div
class=
"text-start"
>
<h5
class=
"fw-bolder mb-3"
>
{{
recipe
.
name
}}
</h5>
<p
class=
"fs-8"
>
<p
class=
"fs-8
card-text-description
"
>
{{
recipe
.
description
}}
</p>
</div>
...
...
@@ -63,6 +63,16 @@ const toggleFavorite = async() => {
box-shadow
:
0
0
0
0.25rem
rgba
(
121
,
62
,
108
,
0.25
);
}
.card-text-description
{
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
6
;
/* Número de líneas antes de cortar */
line-clamp
:
6
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
height
:
3.8cm
;
/* Altura de ejemplo para 3 líneas */
}
.btn-more
{
border-color
:
#793E6C
;
color
:
#793E6C
;
...
...
src/views/Recipes.vue
View file @
6de31634
...
...
@@ -28,13 +28,15 @@
</div>
</div>
<div
v-if=
"recipeStore.recipes.length"
class=
"d-flex flex-wrap gap-3 justify-content-center"
>
<RecipeCard
v-for=
"recipe in recipeStore.recipes"
:key=
"recipe.id"
:recipe=
"recipe"
></RecipeCard>
<div
v-if=
"recipeStore.recipes.length"
class=
"row g-4 d-flex justify-content-center"
>
<div
v-for=
"recipe in recipeStore.recipes"
:key=
"recipe.id"
class=
"col-md-7 col-lg-6 d-flex"
>
<RecipeCard
:recipe=
"recipe"
/>
</div>
</div>
<div
v-else
class=
"text-center text-muted"
>
No se encontraron recetas.
</div>
<div
class=
"d-flex justify-content-center mt-4"
>
<nav
aria-label=
"Page navigation"
>
<ul
class=
"pagination pagination-sm mb-0 pagination-custom"
>
...
...
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