From aaf95eb3728d09b9f05be97e008b6585f12fdb4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20S=C3=BC=C3=9F?= Date: Mon, 24 Oct 2016 23:16:33 +0200 Subject: [PATCH] Accounts are now bottom-aligned --- hledger-web/Handler/Common.hs | 4 ++-- hledger-web/static/hledger.css | 16 ++++++++++------ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/hledger-web/Handler/Common.hs b/hledger-web/Handler/Common.hs index 688fcb312..f965efd08 100644 --- a/hledger-web/Handler/Common.hs +++ b/hledger-web/Handler/Common.hs @@ -192,13 +192,13 @@ balanceReportAsHtml _ vd@VD{..} (items',total) = itemAsHtml :: ViewData -> BalanceReportItem -> HtmlUrl AppRoute itemAsHtml _ (acct, adisplay, aindent, abal) = [hamlet| - +
\#{indent} #{adisplay} $if hassubs only - + #{mixedAmountAsHtml abal} |] where diff --git a/hledger-web/static/hledger.css b/hledger-web/static/hledger.css index b6fbb45a4..aff7234b7 100644 --- a/hledger-web/static/hledger.css +++ b/hledger-web/static/hledger.css @@ -121,14 +121,9 @@ ul { overflow: hidden; white-space:nowrap; text-overflow:ellipsis; - max-width:200px; font-size: 16px; } -@media(max-width:992px){ - #sidebar-menu .main-menu td { - max-width: 150px; - } -} + #sidebar-menu .main-menu .ff-wrapper { /* This wrapper is needed because firefox won't apply overflow to a td-tag */ overflow:hidden; text-overflow:ellipsis; @@ -185,6 +180,15 @@ ul { overflow-x:auto; } +#sidebar-menu .main-menu .acct { + width:80%; + vertical-align:bottom; +} + +#sidebar-menu .main-menu .amnt { + width:20%; +} + .transactionsreport .nonhead { border: none !important; }