diff --git a/README.md b/README.md index 24d1531..8566536 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ Put an hledger journal in a fenced `hledger` code block in a topic's first post. The block is replaced by a dashboard with four reports, generated live by the `hledger` command line tool: -- Accounts and balances -- Balance sheet -- Income statement +- Accounts and balances (a full account tree, each name capitalized) +- Balance sheet (indented account tree under each section) +- Income statement (indented account tree under each section) - Equity distribution (contributed capital, not legal ownership) ## Installation diff --git a/assets/javascripts/discourse/components/hledger-dashboard.gjs b/assets/javascripts/discourse/components/hledger-dashboard.gjs index 0353a21..2cd1847 100644 --- a/assets/javascripts/discourse/components/hledger-dashboard.gjs +++ b/assets/javascripts/discourse/components/hledger-dashboard.gjs @@ -7,6 +7,7 @@ import { eq } from "discourse/truth-helpers"; import DButton from "discourse/ui-kit/d-button"; import DConditionalLoadingSpinner from "discourse/ui-kit/d-conditional-loading-spinner"; import DDatePicker from "discourse/ui-kit/d-date-picker"; +import dConcatClass from "discourse/ui-kit/helpers/d-concat-class"; import { i18n } from "discourse-i18n"; const REPORT_IDS = ["accounts", "balance_sheet", "income_statement", "equity"]; @@ -118,7 +119,7 @@ export default class HledgerDashboard extends Component { } depthClass(depth) { - return `hledger-dashboard__account--depth-${Math.min(depth || 0, 5)}`; + return `--depth-${Math.min(depth || 0, 3)}`; }