Page MenuHomePhabricator

When long monospaced character sequences appear in Remarkup tables, break rather than scrolling
ClosedPublic

Authored by epriestley on Jun 29 2020, 11:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 28, 10:44 AM
Unknown Object (File)
Feb 15 2024, 5:16 AM
Unknown Object (File)
Feb 10 2024, 5:02 AM
Unknown Object (File)
Jan 19 2024, 4:50 PM
Unknown Object (File)
Jan 15 2024, 5:18 PM
Unknown Object (File)
Jan 13 2024, 2:59 AM
Unknown Object (File)
Jan 9 2024, 8:06 AM
Unknown Object (File)
Jan 7 2024, 5:41 PM
Subscribers
None

Details

Summary

Ref PHI1798. If you put an SSH public key in a table cell with monospaced formatting and then print the table, the cell scrolls and not all of the content appears in your physical printed document.

Generally, the current scrolling behavior for monospaced text seems never-desirable: I can't imagine any cases where we want the table cell to scroll. (There's more of an argument for complex cases where a table cell has, say, an embedded paste.)

Add line-break: anywhere to break monospaced text inside these cells.

Test Plan

In Safari, Firefox, and Chrome, viewed a |`MMMMM....`| table. Saw scrolling before and wrapping/breaking after.

Diff Detail

Repository
rP Phabricator
Branch
mono1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24682
Build 34037: Run Core Tests
Build 34036: arc lint + arc unit