Page MenuHomePhabricator

Add a space after "View Inline" in mail to prevent double-click on the filename from selecting "Inline"
ClosedPublic

Authored by epriestley on Oct 10 2018, 7:44 PM.
Tags
None
Referenced Files
F13208767: D19742.id.diff
Thu, May 16, 7:14 PM
F13203918: D19742.diff
Wed, May 15, 12:13 AM
F13186566: D19742.diff
Sat, May 11, 3:42 AM
Unknown Object (File)
Tue, May 7, 7:01 AM
Unknown Object (File)
Tue, May 7, 4:10 AM
Unknown Object (File)
Mon, May 6, 6:28 AM
Unknown Object (File)
Fri, May 3, 4:59 AM
Unknown Object (File)
Fri, Apr 26, 2:06 PM
Subscribers
None

Details

Summary

See PHI920. Ref T13210. Since the HTML is just:

<a>View Inline</a><span>filename.txt</span>

..double-clicking "filename.txt" in email selects "Inlinefilename.txt".

Add a space to stop this. At least in Safari, a space between the tags is not sufficient (perhaps because the parent is a <div>?). I couldn't find an authoritative-seeming source on what the rules for this actually are and adding a space here fixes the issue without changing the visual rendering, so just put it here.

Test Plan
  • Made an inline.
  • Used bin/mail show-outbound --id ... --dump-html to dump the HTML.
  • Double-clicked the filename.

Screen Shot 2018-10-10 at 12.40.39 PM.png (956×1 px, 131 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable