Skip to content
Snippets Groups Projects
Commit 26ece2a3 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #401 - improved transaction table

parent 7009d0ab
Branches
No related tags found
No related merge requests found
Pipeline #898 passed
...@@ -575,6 +575,10 @@ input[type="radio"]:not(:checked) + span::before, [type="radio"]:not(:checked) + ...@@ -575,6 +575,10 @@ input[type="radio"]:not(:checked) + span::before, [type="radio"]:not(:checked) +
white-space: nowrap; white-space: nowrap;
} }
.invisible {
opacity: 0;
}
.hidden { .hidden {
display: none; display: none;
} }
......
...@@ -22,3 +22,11 @@ ...@@ -22,3 +22,11 @@
.transaction-container { .transaction-container {
width: 90%; width: 90%;
} }
.transaction-container .responsive-table td {
text-align: center;
}
.transaction-container .category-circle-small {
margin: auto;
}
\ No newline at end of file
...@@ -488,6 +488,10 @@ input[type="radio"]:checked + span::after, [type="radio"].with-gap:checked + spa ...@@ -488,6 +488,10 @@ input[type="radio"]:checked + span::after, [type="radio"].with-gap:checked + spa
white-space: nowrap; white-space: nowrap;
} }
.invisible {
opacity: 0;
}
.hidden { .hidden {
display: none; display: none;
} }
......
...@@ -22,3 +22,11 @@ ...@@ -22,3 +22,11 @@
.transaction-container { .transaction-container {
width: 90%; width: 90%;
} }
.transaction-container .responsive-table td {
text-align: center;
}
.transaction-container .category-circle-small {
margin: auto;
}
\ No newline at end of file
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<br> <br>
<div class="row"> <div class="row">
<div class="col s12"> <div class="col s12">
<table class="bordered"> <table class="bordered responsive-table">
<#list transactions as transaction> <#list transactions as transaction>
<tr> <tr>
<td>${helpers.getDateStringWithoutYear(transaction.date)}</td> <td>${helpers.getDateStringWithoutYear(transaction.date)}</td>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<#macro transactionRepeating transaction> <#macro transactionRepeating transaction>
<td> <td>
<#if transaction.isRepeating()><i class="material-icons">repeat</i></#if> <i class="material-icons <#if !transaction.isRepeating()>invisible</#if>">repeat</i>
</td> </td>
</#macro> </#macro>
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</div> </div>
</div> </div>
<div class="hide-on-large-only"> <div class="hide-on-large-only">
<div class="category-circle-small no-margin" style="background-color: ${transaction.category.color}"> <div class="category-circle-small" style="background-color: ${transaction.category.color}">
<span style="color: ${transaction.category.getAppropriateTextColor()}"> <span style="color: ${transaction.category.getAppropriateTextColor()}">
${transaction.category.name?capitalize[0]} ${transaction.category.name?capitalize[0]}
</span> </span>
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<#macro transactionNameAndDescription transaction> <#macro transactionNameAndDescription transaction>
<td class="transaction-name"> <td class="transaction-name">
<div class="ellipsis">${transaction.name}</div> <div class="ellipsis">${transaction.name}</div>
<div class="hide-on-small-only"> <div class="hide-on-med-and-down">
<#if transaction.description??> <#if transaction.description??>
<div class="italic">${transaction.description}</div> <div class="italic">${transaction.description}</div>
</#if> </#if>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment