@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

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.

Differential Revision: https://secure.phabricator.com/D21370

+4 -3
+3 -3
resources/celerity/map.php
··· 9 9 'names' => array( 10 10 'conpherence.pkg.css' => '0e3cf785', 11 11 'conpherence.pkg.js' => '020aebcf', 12 - 'core.pkg.css' => 'ba768cdb', 12 + 'core.pkg.css' => 'da792a0f', 13 13 'core.pkg.js' => '845355f4', 14 14 'dark-console.pkg.js' => '187792c2', 15 15 'differential.pkg.css' => '5c459f92', ··· 114 114 'rsrc/css/application/tokens/tokens.css' => 'ce5a50bd', 115 115 'rsrc/css/application/uiexample/example.css' => 'b4795059', 116 116 'rsrc/css/core/core.css' => '1b29ed61', 117 - 'rsrc/css/core/remarkup.css' => 'c286eaef', 117 + 'rsrc/css/core/remarkup.css' => '7d3ebc86', 118 118 'rsrc/css/core/syntax.css' => '548567f6', 119 119 'rsrc/css/core/z-index.css' => 'ac3bfcd4', 120 120 'rsrc/css/diviner/diviner-shared.css' => '4bd263b0', ··· 798 798 'phabricator-object-selector-css' => 'ee77366f', 799 799 'phabricator-phtize' => '2f1db1ed', 800 800 'phabricator-prefab' => '5793d835', 801 - 'phabricator-remarkup-css' => 'c286eaef', 801 + 'phabricator-remarkup-css' => '7d3ebc86', 802 802 'phabricator-search-results-css' => '9ea70ace', 803 803 'phabricator-shaped-request' => '995f5102', 804 804 'phabricator-slowvote-css' => '1694baed',
+1
webroot/rsrc/css/core/remarkup.css
··· 86 86 padding: 1px 4px; 87 87 border-radius: 3px; 88 88 white-space: pre-wrap; 89 + line-break: anywhere; 89 90 } 90 91 91 92 /* NOTE: You can currently produce this with [[link | `name`]]. Restore the