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; color: #888;
} }
.transaction .title .transaction-note {
font-size: 1.3em;
display: block;
}
.col-any-0 { .col-any-0 {
width:0 !important; width:0 !important;
height:0 !important; height:0 !important;

View File

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