From 4c2f576e39b5bb2b3d828febe2aa6fc6e8c69e3f Mon Sep 17 00:00:00 2001 From: Hironsan Date: Fri, 20 Sep 2019 15:26:45 +0900 Subject: [PATCH] Add deleve button to EntityItem --- frontend/components/molecules/EntityItem.vue | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/frontend/components/molecules/EntityItem.vue b/frontend/components/molecules/EntityItem.vue index 23ceff7e..360c7bd4 100644 --- a/frontend/components/molecules/EntityItem.vue +++ b/frontend/components/molecules/EntityItem.vue @@ -1,6 +1,6 @@ @@ -32,6 +32,9 @@ export default { methods: { open() { alert('hello') + }, + remove() { + alert('remove') } } } @@ -60,6 +63,15 @@ export default { line-height: 22px; display: flex; } +.highlight .delete { + top:-15px; + left:-13px; + position:absolute; + display: none; +} +.highlight:hover .delete { + display: block; +} .highlight__content { display: flex; flex-wrap: wrap; @@ -86,5 +98,9 @@ export default { } .highlight__label::after { content: attr(data-label); + display: block; + font-size: 14px; + -webkit-font-smoothing: subpixel-antialiased; + letter-spacing: .1em; }