🎨 (app) no margin to main components
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="account-list">
|
||||
<div class="account-list no-margin">
|
||||
<div class="columns is-centered is-multiline" v-if="accounts.length">
|
||||
<div class="column is-3" v-for="(account, k) in accounts" :key="k">
|
||||
<account-card :account="account" />
|
||||
@@ -53,9 +53,6 @@ export default class AccountList extends Vue {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.account-list {
|
||||
margin: 0 0.75rem;
|
||||
}
|
||||
li {
|
||||
margin-bottom: 10px;
|
||||
&:last-child {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="tag-list">
|
||||
<div class="tag-list no-margin">
|
||||
<div class="columns">
|
||||
<div class="column legend-container">
|
||||
<table class="table is-fullwidth">
|
||||
@@ -171,9 +171,7 @@ export default class TagList extends Vue {
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '../styles/variables';
|
||||
.tag-list {
|
||||
margin: 0 0.75rem;
|
||||
}
|
||||
|
||||
.category-list:not(:last-child) {
|
||||
border-bottom: 1px solid $main;
|
||||
}
|
||||
|
||||
@@ -226,13 +226,13 @@ export default class TransactionCreate extends Vue {
|
||||
this.currency = transaction.mainCurrency
|
||||
}
|
||||
|
||||
public async submitTransaction(next: any): Promise<void> {
|
||||
public async submitTransaction(finish: () => void): Promise<void> {
|
||||
if (!this.validate()) {
|
||||
next()
|
||||
finish()
|
||||
return
|
||||
}
|
||||
if (!this.currency || !this.account) {
|
||||
next()
|
||||
finish()
|
||||
return
|
||||
}
|
||||
const currencies: string[] = this.account.currencies.map(
|
||||
@@ -282,7 +282,7 @@ export default class TransactionCreate extends Vue {
|
||||
console.warn(response)
|
||||
alertMessage(`Une erreur s'est produite à la création d'une transaction.`)
|
||||
}
|
||||
next()
|
||||
finish()
|
||||
}
|
||||
|
||||
public selectAll(): void {
|
||||
|
||||
Reference in New Issue
Block a user