From 360b23f968bba9ebc051ec20c893cef06b25502d Mon Sep 17 00:00:00 2001
From: cnachtigall1991 <40701475+cnachtigall1991@users.noreply.github.com>
Date: Wed, 13 Oct 2021 15:44:41 +0200
Subject: [PATCH] added delete button to recent visited
---
src/views/Home.vue | 65 ++++++++++++++++++++++++++++++++++++++--------
1 file changed, 54 insertions(+), 11 deletions(-)
diff --git a/src/views/Home.vue b/src/views/Home.vue
index b71c97f..07a6dd6 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -5,9 +5,8 @@
-
-
+
+
@@ -15,6 +14,7 @@
{{ player.name }}
+
@@ -41,22 +41,46 @@
@@ -67,6 +91,7 @@ export default {
font-size: 5rem;
padding-bottom: 1.5rem;
}
+
.main-content {
.head {
background-image: url("../images/map_screenshots/default.jpg");
@@ -106,10 +131,27 @@ export default {
height: 75px;
background: var(--bs-blue);
border-radius: 15% 5%;
+ position: relative;
+
+ .delete {
+ display: none;
+ }
&:hover {
background: var(--bs-primary);
cursor: pointer;
+
+ .delete {
+ display: initial;
+ position: absolute;
+ font-size: 1rem;
+ top: 5px;
+ right: 5px;
+
+ &:hover {
+ color: maroon;
+ }
+ }
}
img {
@@ -131,6 +173,7 @@ export default {
.recent-search {
.player-card {
height: 60px;
+
img {
width: 30px;
height: 30px;
@@ -151,4 +194,4 @@ export default {
}
}
}
-
\ No newline at end of file
+