Skip to content

fix: leave Copy link off a thread's opening message under a finger - #7164

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-7163
Nov 25, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-7163

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

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 main since #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_head

Cause. #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 y still 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_link now 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:

before (f41ae2fe6) after
card with news, user's message first before after
card after a saved rewrite before after

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 y still 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

#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
@leaf-agent
leaf-agent merged commit 90bc5d5 into main Nov 25, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-7163 branch November 25, 2026 14:38
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