diff --git a/frontend/css/journal-table.css b/frontend/css/journal-table.css index f58ae02a1..4edc34886 100644 --- a/frontend/css/journal-table.css +++ b/frontend/css/journal-table.css @@ -74,10 +74,12 @@ .journal.show-open .open, .journal.show-pad .pad, .journal.show-query .query, +/* Show metadata and postings if it was toggled for the whole journal. */ .journal.show-metadata .metadata, .journal.show-postings .postings, -.transaction.show-postings .postings, -.transaction.show-postings .metadata { +/* Show metadata and postings where it was explicitly toggled with the indicators. */ +.journal > li.show-full-entry .postings, +.journal > li.show-full-entry .metadata { display: block; } diff --git a/frontend/src/journal/index.ts b/frontend/src/journal/index.ts index ac5cd4eb9..713ced2d6 100644 --- a/frontend/src/journal/index.ts +++ b/frontend/src/journal/index.ts @@ -62,9 +62,9 @@ function handleClick({ target }: Event): void { } } else if (target.closest(".indicators")) { // Toggle postings and metadata by clicking on indicators. - const entry = target.closest(".transaction"); + const entry = target.closest(".journal > li"); if (entry) { - entry.classList.toggle("show-postings"); + entry.classList.toggle("show-full-entry"); } } }