Display payee and note separately hledger-web

This commit is contained in:
Saku Laesvuori 2026-01-16 12:31:14 +02:00
parent 961fd71e57
commit 807f9d800a
2 changed files with 17 additions and 7 deletions

View File

@ -232,6 +232,11 @@ ul {
color: #888;
}
.transaction .title .transaction-note {
font-size: 1.3em;
display: block;
}
.col-any-0 {
width:0 !important;
height:0 !important;

View File

@ -10,13 +10,18 @@ $if elem AddPermission perms
$forall torig <- items
<li .transaction ##{transactionFrag torig}>
<div .title title="#{showTransaction torig}">
<time .date datetime="#{show (tdate torig)}" nowrap>
#{show (tdate torig)}
$if not $ T.null $ tcode torig
<div .transaction-code>
(#{tcode torig})
<div>
#{textElideRight 60 (tdescription torig)}
$with (payee, note) <- payeeAndNoteFromDescription' $ tdescription torig
<time .date datetime="#{show (tdate torig)}" nowrap>
#{show (tdate torig)}
$if not $ T.null $ tcode torig
<div .transaction-code>
(#{tcode torig})
$if not $ T.null $ T.strip payee
<div .transaction-payee>
#{textElideRight 60 payee}
$if not $ T.null $ T.strip note
<div .transaction-note>
#{textElideRight 60 note}
$if null $ filter isVisibleTag $ ttags torig
$else