Images should be scaled #221
Notifications
Total Time Spent: 3 hours 40 minutes
fen
3 hours 40 minutes
No due date set.
Dependencies
No dependencies set.
Reference: poslop/palette#221
Reference in New Issue
Block a user
When viewing a paste images should be scaled to fix the box best as possible.
Also this is an image so there should not be a text box below the image box.
The link pill for the image should also be cleaned up its positioning currently is out of place.
Raw view also should just show the image raw but currently it does not
the size MB in the view details is not accurate for the image
QA FAIL on PR 224 (verified against a local build of
07b1c69, PR head == dev-ancestor, CI test success):Stats summary size wrong for ALL attachment pastes. web.go fixes SizeHuman and the details grid but
summarystill uses humanSize(len(row.Content)). Repro: image paste (1x1 png, 70 B) -> summary pill shows "text · 0 B · N views", details grid shows "70 B". Text attachment (23 B) -> summary "0 B", details "23 B". The owner comment asks for accurate size in view details; the summary pill is part of that.LineCount forced to 1 for ANY attachment (web.go: lineCount = 1 when attachment != nil). A 2-line text attachment renders "23 B (1 lines)" in details. LineCount should only be overridden for image pastes (no code box) or derived from actual content otherwise.
Otherwise verified good on the local build: image paste renders no code box, image preview present, raw serves image/png bytes with nosniff, wrap/copy buttons still present (owner never asked to hide them), chip is left-aligned inline. PR 225 (
6d9f959) got the size right in BOTH summary and details via pasteDisplaySize() and does not force lineCount — consider porting that part onto this branch.Rework: fix the summary + lineCount delta, push to fix-221, re-open QA.
QA pass for #221 via merged PR #224 (deploy verified live on palette-dev):
cb58a51bStale fix-221-wip branch deleted; stale 'In Progress' label on #221 cleared. Closing.
QA verification completed for PR #224 after its merge into dev (merge
cb58a51, CI success). Note: another run posted the close and a QA PASS comment; that PASS cited #223 evidence, so this comment records the #221-specific live verification.Evidence on live palette-dev (served app.css sha256 79d4fde1efc2... matches origin/dev tip, no rollout needed):
Issue remains closed with clean labels; fix-221 branch already deleted.
QA PASS (PR #224, verified live on palette-dev after rollout):
Rebased onto dev before merge (dev had moved); CI test + docker green on the merged tip.
QA PASS for follow-up PR #228, verified live on palette-dev after merge
e589428+ rollout:Closed; time logged.
QA PASS for follow-up PR #228 (merged
e589428to dev, CI test+docker success, palette-dev rolled out and re-verified live):Issue #221 scope is fully live on palette-dev: scaling, no text box, cleaned-up link pill, raw image view, accurate size. Closing.