1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 03:50:54 +01:00

Put boundary spaces around crumb names so double-clicking doesn't flip out

Summary: Occasionally, double clicking crumbs to select them is useful.

Test Plan: {F1107226}

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D15263
This commit is contained in:
epriestley 2016-02-12 11:10:04 -08:00
parent ca908d7cc4
commit de4167d683

View file

@ -73,12 +73,16 @@ final class PHUICrumbView extends AphrontView {
->setIcon($this->icon);
}
// Surround the crumb name with spaces so that double clicking it only
// selects the crumb itself.
$name = array(' ', $this->name, ' ');
$name = phutil_tag(
'span',
array(
'class' => 'phui-crumb-name',
),
$this->name);
$name);
$divider = null;
if (!$this->isLastCrumb) {