From 7ab2e66caa3d1e0f380e82a031730d1bc6c2f0cb Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Mon, 1 Apr 2019 01:37:27 +0700 Subject: [PATCH] Add ability to close and open new note section --- src/views/reports/components/TimelineItem.vue | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/views/reports/components/TimelineItem.vue b/src/views/reports/components/TimelineItem.vue index e30fab37..21f10864 100644 --- a/src/views/reports/components/TimelineItem.vue +++ b/src/views/reports/components/TimelineItem.vue @@ -16,8 +16,11 @@ -
-

New note

+
+
+

New note

+ +
@@ -37,11 +40,13 @@ export default { data() { return { showNotes: [], + showNewNoteInput: false, note: '' } }, methods: { toggleNoteInput() { + this.$data.showNewNoteInput = !this.$data.showNewNoteInput } } } @@ -57,6 +62,13 @@ export default { .el-collapse-item__content { padding-bottom: 7px; } + .el-icon-arrow-right { + margin-right: 6px; + } + .el-icon-close { + padding: 10px 5px 10px 10px; + cursor: pointer; + } h4 { margin: 0; height: 17px; @@ -67,10 +79,11 @@ export default { align-items: baseline; } .new-note { - margin: 14px 0 17px; + margin-bottom: 17px; p { font-size: 13px; font-weight: 500; + height: 17px; margin: 13px 0 7px; } }