🎨 (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>) => {
if (result.direction === 'pull') {
const docNoCurrency = result.change.docs.find(
(doc: any) => !doc._id.startsWith('cur')
const hasDocOtherThanExchange = result.change.docs.some(
(doc: any) => doc.doctype !== 'exchange'
)
if (docNoCurrency) {
if (hasDocOtherThanExchange) {
emit(SYNC)
confirmation('Mise à jour...')
}

View File

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

View File

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