Registry Mirror
Skip to content

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

What was wrong. On a phone, a picture wider than 4:1 attached to a message did not show in the thread: only its caption (name and size) did. The phone media query in packages/inbox/inbox.css had a bare .ib-wide { display: none; }, added in #1857 (v0.28.16) to hide keyboard-key hints (<kbd class="ib-kbd ib-wide">). #1906 (v0.28.20) then gave the gallery frame of a wide picture the same class (AttachmentTiles ImageGallery, WIDE_IMAGE_RATIO), so since v0.28.20 every wide picture's frame has been hidden on a phone.

What changed. The phone rule is narrowed to the key hints it was written for: .ib-kbd.ib-wide { display: none; }. The gallery class is unchanged. (No key hint carries ib-wide today: the last ones moved off it in #1918 and the thread-header change, so the narrowed rule matches nothing now. It is kept so a hint marked ib-wide still hides on a phone.)

Test. packages/inbox/attachmentKinds.test.tsx (DOM): it renders a wide picture's gallery frame and checks that no display: none rule in the phone media query matches it. It fails on main on .ib-wide and passes with the fix.

The phone rule that hid keyboard hints was a bare .ib-wide { display: none },
and the gallery frame of a picture wider than 4:1 carries the same class, so
on a phone every wide picture showed only its caption. Narrow the rule to the
key hints (.ib-kbd.ib-wide).
@backnotprop
backnotprop marked this pull request as ready for review November 29, 2026 18:38
@backnotprop
backnotprop merged commit c027e91 into main Nov 29, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant