From b302242ce1580bb64e2b0446dc356a3cee2a6116 Mon Sep 17 00:00:00 2001 From: Rene Merino Date: Sat, 18 Mar 2017 01:13:39 -0400 Subject: [PATCH 1/2] Style updates --- src/scss/app.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scss/app.scss b/src/scss/app.scss index 58de30a..be1558d 100644 --- a/src/scss/app.scss +++ b/src/scss/app.scss @@ -39,6 +39,8 @@ &-title { flex-grow: 1; + margin-bottom: 0; + margin-right: 20px; } } From 6e912a5bbb6090f580d9896a3bd51e737ce374f2 Mon Sep 17 00:00:00 2001 From: Rene Merino Date: Sat, 18 Mar 2017 01:14:19 -0400 Subject: [PATCH 2/2] Allow multiple timers to run at the same time --- src/js/components/TimerItem.js | 2 +- src/js/reducers/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/components/TimerItem.js b/src/js/components/TimerItem.js index 170eeaf..5753c3e 100644 --- a/src/js/components/TimerItem.js +++ b/src/js/components/TimerItem.js @@ -36,7 +36,7 @@ const TimerItem = ({onClose, onStart, onStop, onTitleToggle, started, title, dis diff --git a/src/js/reducers/index.js b/src/js/reducers/index.js index 8f39b91..3148330 100644 --- a/src/js/reducers/index.js +++ b/src/js/reducers/index.js @@ -106,9 +106,9 @@ export default function reducer(state={ let newState = _.assign({}, state); newState.timers = _.map(newState.timers, (timer) => { - timer.started = false; if (timer.id === id) { + timer.started = false; timer.endTime = moment.now(); // Save duration in case we want to start timer again timer.durationCycle = timer.duration;