From 011431f93a7bbd435a8b0de0316a1c1aa7991f21 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Fri, 26 Feb 2016 15:00:56 -0800 Subject: [PATCH] fix(threads): Right-align the timestamps in the thread list --- internal_packages/thread-list/stylesheets/thread-list.less | 3 +++ src/flux/stores/nylas-sync-status-store.coffee | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/internal_packages/thread-list/stylesheets/thread-list.less b/internal_packages/thread-list/stylesheets/thread-list.less index 8cfe2d4ad..cf361eef1 100644 --- a/internal_packages/thread-list/stylesheets/thread-list.less +++ b/internal_packages/thread-list/stylesheets/thread-list.less @@ -195,6 +195,9 @@ display: flex; align-items: center; } + .list-column-Date { + text-align: right; + } .timestamp { font-size: @font-size-small; diff --git a/src/flux/stores/nylas-sync-status-store.coffee b/src/flux/stores/nylas-sync-status-store.coffee index f888e3300..f16df0870 100644 --- a/src/flux/stores/nylas-sync-status-store.coffee +++ b/src/flux/stores/nylas-sync-status-store.coffee @@ -17,7 +17,9 @@ class NylasSyncStatusStore extends NylasStore AccountStore.accounts().forEach (item) => query = DatabaseStore.findJSONBlob("NylasSyncWorker:#{item.id}") @_subscriptions[item.id] ?= Rx.Observable.fromQuery(query).subscribe (json) => - @_statesByAccount[item.id] = json ? {} + state = _.extend({}, json ? {}) + delete state.cursor + @_statesByAccount[item.id] = state @trigger() state: =>