From 1a20f0a15baa37ac0e611fcecb3ed7bfb818423c Mon Sep 17 00:00:00 2001 From: Giorgio Gilestro Date: Thu, 28 May 2026 19:13:52 +0200 Subject: [PATCH] mobile: tag Qty/Avg cells in JS-rendered portfolio table MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The portfolio table is rendered client-side in portfolio.js (not by the partials/portfolio.html Jinja template, which is unused for this view). The previous commit's mobile-hide class made it into the template but never reached the actual DOM. Adding the class to the JS-emitted and strings so .dense .mobile-hide { display: none } actually picks them up at ≤480px. --- app/static/js/portfolio.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/static/js/portfolio.js b/app/static/js/portfolio.js index ac2c175..b7f820f 100644 --- a/app/static/js/portfolio.js +++ b/app/static/js/portfolio.js @@ -303,8 +303,8 @@ return '' + '' + esc(p.yahoo_ticker) + '' + '' + esc(p.name || '') + '' + - '' + fmt(p.qty, { maximumFractionDigits: 6 }) + '' + - '' + fmt(p.avg_cost) + '' + + '' + fmt(p.qty, { maximumFractionDigits: 6 }) + '' + + '' + fmt(p.avg_cost) + '' + '' + lastDisplay + fxBadge + '' + '' + signed(p._ppl) + '' + '' + pct(p._ppl_pct) + '' + @@ -365,7 +365,7 @@ '' + '' + '' + - '' + + '' + '' + '' + '' +
TickerNameQtyAvgQtyAvgLastP/L%