Repository navigation
fix: leave Copy link off a thread's opening message under a finger - #7164
Merged
Merged
Conversation
#7159 shows Copy link on every thread message under a finger, beside the reaction or Edit. On a margin card at its least width the opening message's head also holds the thread's controls, so the extra aim-floor control cut the user's name to "M" and hid the "edited" label, failing test_a_card_s_head_stands_whole_beside_news[True] and test_a_cards_message_controls_cover_its_head on main since 118f31f. The opening message's link is the thread's, which the address already names while the thread is open; #7159's reason to show the control under a finger is a reply's link, which nothing else gives a finger. So under a finger the opening message offers neither Copy nor Copy link, and replies keep Copy link. With a pointer nothing changes. test_a_finger_copies_a_reply_s_link now also asserts the opening message's Copy link is hidden under a finger. Refs #7163
This was referenced Nov 25, 2026
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.
Under a finger, a thread's opening message no longer shows Copy link. Replies still show it. This fixes the two touch tests that have failed on
mainsince #7159 (118f31f6d), in run 45600749683:tests/browser/margin/test_card_placement.py::test_a_card_s_head_stands_whole_beside_news[True]tests/browser/threads/test_rewrites.py::test_a_cards_message_controls_cover_its_headCause. #7159 shows Copy link on every message under a finger. On a margin card the opening message's head also holds the thread's controls (Open in panel, Resolve, Close). On a card at its least width, the extra control cut the user's name to "M" and hid the "edited" label.
Fix. #7159 gives its reason for showing the control under a finger: nothing else gives a finger a reply's link. The opening message's link is the thread's own, and the address already holds it while the thread is open. So under a finger the opening message drops Copy link, as it already drops Copy. With a pointer nothing changes, and
ystill copies the thread's link.Verification. Both tests fail locally at
f41ae2fe6. They pass with #7159 reverted, and they pass on this branch. #7159's two link tests also pass.test_a_finger_copies_a_reply_s_linknow also asserts that the opening message has no Copy link under a finger; that assertion fails without the CSS change.On screen, on a touch card 1408 px wide, before and after:
f41ae2fe6)What this gives up from #7159: under a finger, the thread's link is no longer one tap on its opening message. It stays in the address bar, and
ystill copies it. The pictures also show a defect this PR leaves alone: under a finger, a reply's link glyph sits about 12 px below the reaction beside it.Refs #7163 — automated triage