Improve layout of balances header
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jan Bader 2022-03-01 20:59:06 +00:00
parent 2b3afbf448
commit bbfda6f402

View File

@ -41,25 +41,25 @@ function createReconcilationTransaction() {
</script> </script>
<template> <template>
<div class="grid grid-cols-2"> <div class="grid grid-cols-[1fr_auto]">
<h1 class="inline"> <h1 class="inline">
{{ accounts.CurrentAccount?.Name }} {{ accounts.CurrentAccount?.Name }}
<EditAccount /> <EditAccount />
</h1> </h1>
<div class="text-right"> <div class="text-right flex flex-wrap flex-col md:flex-row justify-end gap-2 max-w-sm">
<span class="border-2 rounded-lg p-1 whitespace-nowrap"> <span class="border-2 rounded-lg p-1 whitespace-nowrap flex-1">
Working: Working:
<Currency :value="accounts.CurrentAccount?.WorkingBalance" /> <Currency :value="accounts.CurrentAccount?.WorkingBalance" />
</span> </span>
<span class="border-2 rounded-lg p-1 ml-2 whitespace-nowrap"> <span class="border-2 rounded-lg p-1 whitespace-nowrap flex-1">
Cleared: Cleared:
<Currency :value="accounts.CurrentAccount?.ClearedBalance" /> <Currency :value="accounts.CurrentAccount?.ClearedBalance" />
</span> </span>
<span <span
class="border-2 border-blue-500 rounded-lg bg-blue-500 ml-2 p-1 whitespace-nowrap" class="border-2 border-blue-500 rounded-lg bg-blue-500 p-1 whitespace-nowrap flex-1"
v-if="!transactions.Reconciling" v-if="!transactions.Reconciling"
@click="transactions.Reconciling = true" @click="transactions.Reconciling = true"
> >