From b213f648565d77282b75be088f2cdf211dc574c3 Mon Sep 17 00:00:00 2001 From: drecodeam Date: Sat, 1 Sep 2018 15:47:43 +0530 Subject: [PATCH] fix minor bugs --- package.json | 2 +- src/app/components/home/home.component.html | 3 +++ src/app/components/home/home.component.scss | 25 ++++++++++++++++++++- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7b212ac..8ca4ef2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Stors", - "version": "0.3.2", + "version": "0.3.3", "description": "A simple task manager for a day", "homepage": "https://insert.black", "repository": "https://github.com/drecodeam/stors", diff --git a/src/app/components/home/home.component.html b/src/app/components/home/home.component.html index 075b200..7f4e211 100644 --- a/src/app/components/home/home.component.html +++ b/src/app/components/home/home.component.html @@ -25,6 +25,9 @@ [class.ticked] = "!!item.isTicked" [class.active] = "(item.id === currentTaskID)" > +
+ +
{{item.displayTime}}
|
{{item.name}}
diff --git a/src/app/components/home/home.component.scss b/src/app/components/home/home.component.scss index 10a2806..064f1a6 100644 --- a/src/app/components/home/home.component.scss +++ b/src/app/components/home/home.component.scss @@ -104,11 +104,19 @@ $haiti : #170139; .task-list-item { position: relative; overflow: hidden; - padding: 1.5rem 2rem; + padding: 1.5rem 1rem; color: #f1f1f1; font-family: $font-sans-serif; transition: 0.2s all ease-in-out; line-height: 1.5rem; + + .play-icon { + display: inline-block; + padding-right: 1rem; + opacity: 0; + transition: 0.4s all ease-in-out; + } + .done-icon { position: absolute; right: 3rem; @@ -156,9 +164,15 @@ $haiti : #170139; font-weight: 300; opacity: 0.8; padding-left: 0.25rem; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + vertical-align: middle; + max-width: 220px; } .item-progress-bar { bottom: 15%; + left: 2.5rem; position: absolute; overflow: hidden; background: $pelorous; @@ -171,6 +185,9 @@ $haiti : #170139; &.ticked { text-decoration: line-through; opacity: 0.25; + .play-icon { + display: none; + } .active-icon { display: none; } @@ -194,6 +211,9 @@ $haiti : #170139; .done-icon { opacity: 1; } + .play-icon { + opacity: 1; + } .delete-icon { opacity: 1; } @@ -209,6 +229,9 @@ $haiti : #170139; .item-separator { animation: animate-progress 2s linear infinite; } + .play-icon { + opacity: 1; + } } } }