Commit f44b6471 authored by Le Dinh Trung's avatar Le Dinh Trung

fix card

parent 12bee8cb
...@@ -172,7 +172,6 @@ ...@@ -172,7 +172,6 @@
item-text="name" item-text="name"
item-value="id" item-value="id"
label="Parent*" label="Parent*"
:rules="requiredRules"
> >
<template #item="{item}"> <template #item="{item}">
<div :class="`category-${item.depth}`"> <div :class="`category-${item.depth}`">
...@@ -702,4 +701,10 @@ img { ...@@ -702,4 +701,10 @@ img {
width: 100px; width: 100px;
height: 150px; height: 150px;
} }
.v-card:hover .v-card-actions {
display: block !important;
}
.v-card-actions {
display: none !important;
}
</style> </style>
...@@ -42,13 +42,11 @@ ...@@ -42,13 +42,11 @@
link link
> >
<div> <div>
<router-link :to="`/home-page/products/${item.id}`">
<v-img <v-img
:src="item.images[0]" :src="item.images[0]"
height="250px" height="250px"
cover cover
/> />
</router-link>
</div> </div>
<v-card-title class="d-flex justify-center" style="color: black"> <v-card-title class="d-flex justify-center" style="color: black">
{{ item.name }} {{ item.name }}
...@@ -56,10 +54,11 @@ ...@@ -56,10 +54,11 @@
<v-card-subtitle class="d-flex justify-center"> <v-card-subtitle class="d-flex justify-center">
{{ item.price + "$" }} {{ item.price + "$" }}
</v-card-subtitle> </v-card-subtitle>
<v-card-actions class="d-flex justify-center"> <v-card-actions class="d-flex justify-center card-actions">
<v-btn <v-btn
:class="{ 'show-btns': hover }" :class="{ 'show-btns': hover }"
icon icon
style="margin-left:8px"
@click="getDataItem" @click="getDataItem"
> >
<v-icon <v-icon
...@@ -312,4 +311,18 @@ export default { ...@@ -312,4 +311,18 @@ export default {
.v-btn > .v-btn__content .v-icon { .v-btn > .v-btn__content .v-icon {
color: rgba(255, 255, 255, 1); 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> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment