Remove server side limit on policy control names
Summary: Fixes T12367. CSS here already truncates (or should have been) and is generally more effective. Remove the unneeded server side truncation. Any other UI place these render? Test Plan: Set Policy to a group name of "Stanford University: Alumni Association and Friends" and see better truncation. Reviewers: epriestley, eliaspro Reviewed By: epriestley, eliaspro Subscribers: eliaspro, Korvin Maniphest Tasks: T12367 Differential Revision: https://secure.phabricator.com/D17479
This commit is contained in:
		| @@ -9,7 +9,7 @@ return array( | |||||||
|   'names' => array( |   'names' => array( | ||||||
|     'conpherence.pkg.css' => '6875302f', |     'conpherence.pkg.css' => '6875302f', | ||||||
|     'conpherence.pkg.js' => '6249a1cf', |     'conpherence.pkg.js' => '6249a1cf', | ||||||
|     'core.pkg.css' => 'bb303011', |     'core.pkg.css' => '7e10ec60', | ||||||
|     'core.pkg.js' => '1fa7c0c5', |     'core.pkg.js' => '1fa7c0c5', | ||||||
|     'darkconsole.pkg.js' => 'e7393ebb', |     'darkconsole.pkg.js' => 'e7393ebb', | ||||||
|     'differential.pkg.css' => '90b30783', |     'differential.pkg.css' => '90b30783', | ||||||
| @@ -128,7 +128,7 @@ return array( | |||||||
|     'rsrc/css/phui/object-item/phui-oi-flush-ui.css' => '9d9685d6', |     'rsrc/css/phui/object-item/phui-oi-flush-ui.css' => '9d9685d6', | ||||||
|     'rsrc/css/phui/object-item/phui-oi-list-view.css' => '5c383524', |     'rsrc/css/phui/object-item/phui-oi-list-view.css' => '5c383524', | ||||||
|     'rsrc/css/phui/object-item/phui-oi-simple-ui.css' => 'a8beebea', |     'rsrc/css/phui/object-item/phui-oi-simple-ui.css' => 'a8beebea', | ||||||
|     'rsrc/css/phui/phui-action-list.css' => 'f980c059', |     'rsrc/css/phui/phui-action-list.css' => '29bb1c5e', | ||||||
|     'rsrc/css/phui/phui-action-panel.css' => '91c7b835', |     'rsrc/css/phui/phui-action-panel.css' => '91c7b835', | ||||||
|     'rsrc/css/phui/phui-badge.css' => '22c0cf4f', |     'rsrc/css/phui/phui-badge.css' => '22c0cf4f', | ||||||
|     'rsrc/css/phui/phui-basic-nav-view.css' => 'a0705f53', |     'rsrc/css/phui/phui-basic-nav-view.css' => 'a0705f53', | ||||||
| @@ -780,7 +780,7 @@ return array( | |||||||
|     'path-typeahead' => 'f7fc67ec', |     'path-typeahead' => 'f7fc67ec', | ||||||
|     'people-picture-menu-item-css' => 'a06f7f34', |     'people-picture-menu-item-css' => 'a06f7f34', | ||||||
|     'people-profile-css' => '4df76faf', |     'people-profile-css' => '4df76faf', | ||||||
|     'phabricator-action-list-view-css' => 'f980c059', |     'phabricator-action-list-view-css' => '29bb1c5e', | ||||||
|     'phabricator-busy' => '59a7976a', |     'phabricator-busy' => '59a7976a', | ||||||
|     'phabricator-chatlog-css' => 'd295b020', |     'phabricator-chatlog-css' => 'd295b020', | ||||||
|     'phabricator-content-source-view-css' => '4b8b05d4', |     'phabricator-content-source-view-css' => '4b8b05d4', | ||||||
|   | |||||||
| @@ -153,12 +153,8 @@ final class AphrontFormPolicyControl extends AphrontFormControl { | |||||||
|         } |         } | ||||||
|       } |       } | ||||||
|  |  | ||||||
|       $policy_short_name = id(new PhutilUTF8StringTruncator()) |  | ||||||
|         ->setMaximumGlyphs(28) |  | ||||||
|         ->truncateString($policy->getName()); |  | ||||||
|  |  | ||||||
|       $options[$policy->getType()][$policy->getPHID()] = array( |       $options[$policy->getType()][$policy->getPHID()] = array( | ||||||
|         'name' => $policy_short_name, |         'name' => $policy->getName(), | ||||||
|         'full' => $policy->getName(), |         'full' => $policy->getName(), | ||||||
|         'icon' => $policy->getIcon(), |         'icon' => $policy->getIcon(), | ||||||
|         'sort' => phutil_utf8_strtolower($policy->getName()), |         'sort' => phutil_utf8_strtolower($policy->getName()), | ||||||
|   | |||||||
| @@ -69,6 +69,7 @@ | |||||||
|   color: {$darkbluetext}; |   color: {$darkbluetext}; | ||||||
|   text-overflow: ellipsis; |   text-overflow: ellipsis; | ||||||
|   overflow: hidden; |   overflow: hidden; | ||||||
|  |   white-space: nowrap; | ||||||
| } | } | ||||||
|  |  | ||||||
| .action-has-icon button.phabricator-action-view-item, | .action-has-icon button.phabricator-action-view-item, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Chad Little
					Chad Little