🎨 (account) no unnecessary scroll in account tabs
This commit is contained in:
@@ -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...')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ html {
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
padding: 15px 0 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.app {
|
.app {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user