diff --git a/components/InvestmentResult.vue b/components/InvestmentResult.vue index c0fb096..09a9409 100644 --- a/components/InvestmentResult.vue +++ b/components/InvestmentResult.vue @@ -1,25 +1,53 @@ @@ -90,7 +118,7 @@ const totalAmount = computed(() => props.amount + totalProfit.value) const totalProfitPercentage = computed(() => (totalProfit.value / props.amount) * 100) const taxPercentageDisplay = computed(() => filters.percent(props.taxPercentage)) -const taxAmountDisplay = computed(() => filters.currency(props.taxAmount)) +const taxAmountDisplay = computed(() => filters.currency((props.taxAmount ? props.taxAmount * -1 : 0))) const amountDisplay = computed(() => filters.currency(props.amount)) const iofAmountDisplay = computed(() => filters.currency(props.iofAmount)) const totalAmountDisplay = computed(() => filters.currency(totalAmount.value)) diff --git a/plugins/vuetify.js b/plugins/vuetify.js index b568f12..48c47be 100644 --- a/plugins/vuetify.js +++ b/plugins/vuetify.js @@ -1,7 +1,6 @@ -// import this after install `@mdi/font` package import '@mdi/font/css/materialdesignicons.css' - import 'vuetify/styles' +import '../src/styles/custom.css' import { createVuetify } from 'vuetify' export default defineNuxtPlugin((app) => { diff --git a/src/styles/custom.css b/src/styles/custom.css new file mode 100644 index 0000000..9662ec8 --- /dev/null +++ b/src/styles/custom.css @@ -0,0 +1,11 @@ +:root .v-table { + line-height: 1.6; +} + +:root .v-table--density-compact { + --v-table-row-height: 1rem; +} + +:root .v-table > .v-table__wrapper > table > tbody > tr > td { + padding: 0; +} \ No newline at end of file