Skip to content

Commit 0d12bbb

Browse files
author
Chad Little
committedMar 6, 2017
Set a max-width on crumbs just in case
Summary: Ref D17361. This sets a reasonable width on crumbs just in case a title is super long. Also fixes a weird Safari issue. Test Plan: Set a username to "hector" and check Safari. Create a badge named "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM" and test length. {F3771744} {F3771747} Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D17472
1 parent 26d3d41 commit 0d12bbb

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
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' => '4cdcf76d',
12+
'core.pkg.css' => 'aab1d168',
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' => 'b743f73e',
142+
'rsrc/css/phui/phui-crumbs-view.css' => 'ccbf2a0c',
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' => 'b743f73e',
853+
'phui-crumbs-view-css' => 'ccbf2a0c',
854854
'phui-curtain-view-css' => '947bf1a4',
855855
'phui-document-summary-view-css' => '9ca48bdf',
856856
'phui-document-view-css' => 'c32e8dec',

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

+11
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@
4848
.phui-crumb-view {
4949
float: left;
5050
padding: 8px 0;
51+
max-width: 240px;
52+
white-space: nowrap;
53+
overflow: hidden;
54+
text-overflow: ellipsis;
55+
}
56+
57+
/* Safari Hack, See D17361 */
58+
.phui-crumb-view:after {
59+
content: "\0000a0";
60+
display: inline-block;
61+
width: 0;
5162
}
5263

5364
.device-phone .phui-crumb-view.phabricator-last-crumb .phui-crumb-name,

0 commit comments

Comments
 (0)
Failed to load comments.