Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
K
kiaisoft_tuananh_nuxt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TTS Tran Viet Anh
kiaisoft_tuananh_nuxt
Commits
f44b6471
Commit
f44b6471
authored
Apr 12, 2023
by
Le Dinh Trung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix card
parent
12bee8cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
9 deletions
+27
-9
index.vue
pages/categories/index.vue
+6
-1
index.vue
pages/home-page/categories/_id/index.vue
+21
-8
No files found.
pages/categories/index.vue
View file @
f44b6471
...
...
@@ -172,7 +172,6 @@
item-text=
"name"
item-value=
"id"
label=
"Parent*"
:rules=
"requiredRules"
>
<
template
#item
="{
item
}"
>
<div
:class=
"`category-$
{item.depth}`">
...
...
@@ -702,4 +701,10 @@ img {
width
:
100px
;
height
:
150px
;
}
.v-card
:hover
.v-card-actions
{
display
:
block
!important
;
}
.v-card-actions
{
display
:
none
!important
;
}
</
style
>
pages/home-page/categories/_id/index.vue
View file @
f44b6471
...
...
@@ -42,13 +42,11 @@
link
>
<div>
<router-link
:to=
"`/home-page/products/$
{item.id}`">
<v-img
:src=
"item.images[0]"
height=
"250px"
cover
/>
</router-link>
<v-img
:src=
"item.images[0]"
height=
"250px"
cover
/>
</div>
<v-card-title
class=
"d-flex justify-center"
style=
"color: black"
>
{{
item
.
name
}}
...
...
@@ -56,10 +54,11 @@
<v-card-subtitle
class=
"d-flex justify-center"
>
{{
item
.
price
+
"
$
"
}}
</v-card-subtitle>
<v-card-actions
class=
"d-flex justify-center"
>
<v-card-actions
class=
"d-flex justify-center
card-actions
"
>
<v-btn
:class=
"
{ 'show-btns': hover }"
icon
style="margin-left:8px"
@click="getDataItem"
>
<v-icon
...
...
@@ -312,4 +311,18 @@ export default {
.v-btn
>
.v-btn__content
.v-icon
{
color
:
rgba
(
255
,
255
,
255
,
1
);
}
.card-actions
{
display
:
none
!
important
;
}
.v-card
:hover
.card-actions
{
display
:
flex
!
important
;
flex-direction
:
column
;
gap
:
5px
;
top
:
0
;
right
:
0
;
position
:
absolute
;
}
.card-actions
>
.v-btn
{
background-color
:
#ffffff
;
}
</
style
>
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