feat: Apply styles to transparency start balance row
All checks were successful
Build and Deploy Static Site (Pride Theme) / build (push) Successful in 1m40s
Build and Deploy Static Site / build (push) Successful in 1m38s

Adds CSS class for start balance row to improve table readability
by highlighting the background color of the row. Updates HTML
generation logic to apply the CSS class to the appropriate table row.

Enhances user interface clarity for financial transparency tables.
This commit is contained in:
Kumi 2024-12-20 13:58:36 +01:00
parent f0c8a67a84
commit 5fc59d8d55
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 7 additions and 1 deletions

View file

@ -342,4 +342,10 @@ h5 {
.accordion-header .bs-icon svg {
width: 32px;
}
/* Table Styles */
.transparency-start-balance-row > td {
background-color: rgb(234, 255, 255) !important;
}

View file

@ -183,7 +183,7 @@ def generate_transparency_table(result, currencies=None):
"""
# Add start balance row
html += "<tr><td>Account Balance (start of month)</td>"
html += "<tr class=\"transparency-start-balance-row\"><td>Account Balance (start of month)</td>"
for currency in currencies:
value = result["start_balance"].get(currency, Decimal(0))
html += f"<td>{format_value(value, currency)}</td>"