From fc0c9c824abd07781cf82c0fd8dc6ac8313b6c09 Mon Sep 17 00:00:00 2001 From: Gennady Grishkovtsov Date: Sun, 30 Sep 2018 15:51:06 +0300 Subject: [PATCH] Add record removing feature --- src/components/recorder.vue | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/src/components/recorder.vue b/src/components/recorder.vue index 8a9d5ae..cd948b6 100644 --- a/src/components/recorder.vue +++ b/src/components/recorder.vue @@ -23,12 +23,14 @@ &__record { width: 320px; + height: 45px; padding: 0 10px; margin: 0 auto; line-height: 45px; display: flex; justify-content: space-between; border-bottom: 1px solid #E8E8E8; + position: relative; &--selected { border: 1px solid #E8E8E8; @@ -105,7 +107,7 @@ @keyframes blink { 0% { opacity: .2; } - 20% { opacity: 1; } + 20% { opacity: 1; } 100% { opacity: .2; } } } @@ -144,6 +146,20 @@ color: red; } } + + &__rm { + cursor: pointer; + position: absolute; + width: 6px; + height: 6px; + padding: 6px; + line-height: 6px; + margin: auto; + left: 10px; + bottom: 0; + top: 0; + color: rgb(244, 120, 90); + } } @import '../scss/icons'; @@ -182,10 +198,14 @@
+ @click="selected = record"> +
×
Record {{idx + 1}}
{{record.duration}}
@@ -193,7 +213,7 @@