🎨 (account) no unnecessary scroll in account tabs

This commit is contained in:
Julien Calixte
2020-03-14 23:23:38 +01:00
parent 1911b30f98
commit 9401fc12f4
3 changed files with 6 additions and 4 deletions

View File

@@ -69,10 +69,10 @@ class CouchService {
}) })
.on('change', (result: PouchDB.Replication.SyncResult<any>) => { .on('change', (result: PouchDB.Replication.SyncResult<any>) => {
if (result.direction === 'pull') { if (result.direction === 'pull') {
const docNoCurrency = result.change.docs.find( const hasDocOtherThanExchange = result.change.docs.some(
(doc: any) => !doc._id.startsWith('cur') (doc: any) => doc.doctype !== 'exchange'
) )
if (docNoCurrency) { if (hasDocOtherThanExchange) {
emit(SYNC) emit(SYNC)
confirmation('Mise à jour...') confirmation('Mise à jour...')
} }

View File

@@ -17,7 +17,6 @@ html {
body { body {
background-color: white; background-color: white;
padding: 15px 0 0;
} }
.app { .app {

View File

@@ -448,6 +448,9 @@ export default class AccountItem extends BaseAccount {
a { a {
color: var(--primary-font-color); color: var(--primary-font-color);
} }
.account-title {
margin-top: 10px;
}
.account-title { .account-title {
span, span,
a { a {