Remove widths from rows as header decides

This commit is contained in:
Jan Bader 2022-02-25 20:37:49 +00:00
parent 97be5abc8c
commit 0f6990407d
2 changed files with 6 additions and 6 deletions

View File

@ -19,9 +19,9 @@ const CurrentBudgetID = computed(()=> useBudgetsStore().CurrentBudgetID);
<tr v-if="!edit" class="{{new Date(transaction.Date) > new Date() ? 'future' : ''}}" <tr v-if="!edit" class="{{new Date(transaction.Date) > new Date() ? 'future' : ''}}"
:class="[index % 6 < 3 ? 'bg-gray-300' : 'bg-gray-100']"> :class="[index % 6 < 3 ? 'bg-gray-300' : 'bg-gray-100']">
<!--:class="[index % 6 < 3 ? index % 6 === 1 ? 'bg-gray-400' : 'bg-gray-300' : index % 6 !== 4 ? 'bg-gray-100' : '']">--> <!--:class="[index % 6 < 3 ? index % 6 === 1 ? 'bg-gray-400' : 'bg-gray-300' : index % 6 !== 4 ? 'bg-gray-100' : '']">-->
<td style="width: 90px;">{{ transaction.Date.substring(0, 10) }}</td> <td>{{ transaction.Date.substring(0, 10) }}</td>
<td style="max-width: 150px;">{{ transaction.TransferAccount ? "Transfer : " + transaction.TransferAccount : transaction.Payee }}</td> <td>{{ transaction.TransferAccount ? "Transfer : " + transaction.TransferAccount : transaction.Payee }}</td>
<td style="max-width: 200px;"> <td>
{{ transaction.CategoryGroup ? transaction.CategoryGroup + " : " + transaction.Category : "" }} {{ transaction.CategoryGroup ? transaction.CategoryGroup + " : " + transaction.Category : "" }}
</td> </td>
<td> <td>
@ -32,10 +32,10 @@ const CurrentBudgetID = computed(()=> useBudgetsStore().CurrentBudgetID);
<td> <td>
<Currency class="block" :value="transaction.Amount" /> <Currency class="block" :value="transaction.Amount" />
</td> </td>
<td style="width: 20px;"> <td>
{{ transaction.Status == "Reconciled" ? "✔" : (transaction.Status == "Uncleared" ? "" : "*") }} {{ transaction.Status == "Reconciled" ? "✔" : (transaction.Status == "Uncleared" ? "" : "*") }}
</td> </td>
<td style="width: 20px;" class="text-right">{{ transaction.GroupID ? "☀" : "" }}<a @click="edit = true;"></a></td> <td class="text-right">{{ transaction.GroupID ? "☀" : "" }}<a @click="edit = true;"></a></td>
</tr> </tr>
<TransactionEditRow v-if="edit" :transaction="transaction" /> <TransactionEditRow v-if="edit" :transaction="transaction" />
</template> </template>

View File

@ -33,7 +33,7 @@ const TransactionsList = computed(() => accountStore.TransactionsList);
<td>Memo</td> <td>Memo</td>
<td class="text-right">Amount</td> <td class="text-right">Amount</td>
<td style="width: 20px;"></td> <td style="width: 20px;"></td>
<td style="width: 20px;"></td> <td style="width: 40px;"></td>
</tr> </tr>
<TransactionInputRow :budgetid="budgetid" :accountid="accountid" /> <TransactionInputRow :budgetid="budgetid" :accountid="accountid" />
<TransactionRow <TransactionRow