Skip to content

Commit 2fed5b6

Browse files
author
Chad Little
committedMar 9, 2017
Fourth fix for the magical world of crumbs and text-overflow
Summary: The Safari hack in place casued a truncation issue in Firefox, so that hack is now gone. Instead the bug appears to be the creative inclusion of "space". In fiddling with this adding one space inside the span and one space outside the span seems to resolve all cases. Test Plan: Chrome, Safari, Firefox. Test "hector" and copy paste of a Task ID. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D17483
1 parent abff6dc commit 2fed5b6

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed
 

‎resources/celerity/map.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'names' => array(
1010
'conpherence.pkg.css' => '6875302f',
1111
'conpherence.pkg.js' => '6249a1cf',
12-
'core.pkg.css' => '7e10ec60',
12+
'core.pkg.css' => 'db710bcc',
1313
'core.pkg.js' => '1fa7c0c5',
1414
'darkconsole.pkg.js' => 'e7393ebb',
1515
'differential.pkg.css' => '90b30783',
@@ -139,7 +139,7 @@
139139
'rsrc/css/phui/phui-cms.css' => '504b4b23',
140140
'rsrc/css/phui/phui-comment-form.css' => '48fbd65d',
141141
'rsrc/css/phui/phui-comment-panel.css' => 'f50152ad',
142-
'rsrc/css/phui/phui-crumbs-view.css' => 'ccbf2a0c',
142+
'rsrc/css/phui/phui-crumbs-view.css' => '6ece3bbb',
143143
'rsrc/css/phui/phui-curtain-view.css' => '947bf1a4',
144144
'rsrc/css/phui/phui-document-pro.css' => 'f56738ed',
145145
'rsrc/css/phui/phui-document-summary.css' => '9ca48bdf',
@@ -850,7 +850,7 @@
850850
'phui-cms-css' => '504b4b23',
851851
'phui-comment-form-css' => '48fbd65d',
852852
'phui-comment-panel-css' => 'f50152ad',
853-
'phui-crumbs-view-css' => 'ccbf2a0c',
853+
'phui-crumbs-view-css' => '6ece3bbb',
854854
'phui-curtain-view-css' => '947bf1a4',
855855
'phui-document-summary-view-css' => '9ca48bdf',
856856
'phui-document-view-css' => 'c32e8dec',

‎src/view/phui/PHUICrumbView.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function render() {
7575

7676
// Surround the crumb name with spaces so that double clicking it only
7777
// selects the crumb itself.
78-
$name = array(' ', $this->name, ' ');
78+
$name = array(' ', $this->name);
7979

8080
$name = phutil_tag(
8181
'span',
@@ -84,6 +84,10 @@ public function render() {
8484
),
8585
$name);
8686

87+
// Because of text-overflow and safari, put the second space on the
88+
// outside of the element.
89+
$name = array($name, ' ');
90+
8791
$divider = null;
8892
if (!$this->isLastCrumb) {
8993
$divider = id(new PHUIIconView())

‎webroot/rsrc/css/phui/phui-crumbs-view.css

-7
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,6 @@
5454
text-overflow: ellipsis;
5555
}
5656

57-
/* Safari Hack, See D17361 */
58-
.phui-crumb-view:after {
59-
content: "\0000a0";
60-
display: inline-block;
61-
width: 0;
62-
}
63-
6457
.device-phone .phui-crumb-view.phabricator-last-crumb .phui-crumb-name,
6558
.device-phone .phui-crumb-view.phui-crumb-has-icon,
6659
.device-phone .phui-crumb-has-icon + .phui-crumb-divider {

0 commit comments

Comments
 (0)
Failed to load comments.