Conversation
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
marked this pull request as ready for review
November 29, 2026 18:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.csshad 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 (AttachmentTilesImageGallery,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 carriesib-widetoday: 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 markedib-widestill hides on a phone.)Test.
packages/inbox/attachmentKinds.test.tsx(DOM): it renders a wide picture's gallery frame and checks that nodisplay: nonerule in the phone media query matches it. It fails on main on.ib-wideand passes with the fix.