Skip to content

Commit

Permalink
coin2html: drop the root in account list, make it narrower
Browse files Browse the repository at this point in the history
  • Loading branch information
mkobetic committed Dec 8, 2024
1 parent 54795c7 commit 4a569ee
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion cmd/coin2html/js/src/views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export function addAccountList() {
.selectAll("li")
.data(account.allChildren())
.join("li")
.text((d) => d.fullName)
.text((d) => State.SelectedAccount.relativeName(d))
.on("click", (e: Event) => {
State.SelectedAccount = (e.currentTarget as liWithAccount).__data__;
updateAccount();
Expand Down
6 changes: 4 additions & 2 deletions cmd/coin2html/js/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ label {
}

/* SIDEBAR */

#sidebar {
display: flex; /* override display: block to make flex-direction work */
flex-direction: column;
flex-basis: 20%; /* horizontal screen proportion */
flex-basis: 15%; /* horizontal screen proportion */
}

#sidebar ul#accounts {
Expand All @@ -26,8 +27,9 @@ label {
}

/* MAIN SECTION */

#main {
flex-basis: 80%; /* horizontal screen proportion */
flex-basis: 85%; /* horizontal screen proportion */
}
#main h1 {
margin: 0.3em; /* reduce margin */
Expand Down
34 changes: 17 additions & 17 deletions examples/yearly/viewer/index.html

Large diffs are not rendered by default.

0 comments on commit 4a569ee

Please sign in to comment.