From 5d0222d532c19ac7162c38a7e8b5726dd8af2bc5 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 18 Jan 2016 08:32:36 -0800 Subject: [PATCH] Fix an issue where the profile menu could become enormous Summary: Ref T10054. Without `max-width`, Safari can make this too large with a long project name (maybe because of `table-cell`?). Test Plan: Saw normal-width menu instead of huge menu on very long project. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10054 Differential Revision: https://secure.phabricator.com/D15046 --- resources/celerity/map.php | 6 +++--- webroot/rsrc/css/phui/phui-profile-menu.css | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/celerity/map.php b/resources/celerity/map.php index 97150f6c74..10d8366cb6 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -7,7 +7,7 @@ */ return array( 'names' => array( - 'core.pkg.css' => '3a97c8b9', + 'core.pkg.css' => 'eacc9293', 'core.pkg.js' => '573e6664', 'darkconsole.pkg.js' => 'e7393ebb', 'differential.pkg.css' => '2de124c9', @@ -143,7 +143,7 @@ return array( 'rsrc/css/phui/phui-object-item-list-view.css' => '26c30d3f', 'rsrc/css/phui/phui-pager.css' => 'bea33d23', 'rsrc/css/phui/phui-pinboard-view.css' => '2495140e', - 'rsrc/css/phui/phui-profile-menu.css' => 'e8030bb3', + 'rsrc/css/phui/phui-profile-menu.css' => 'a26fa598', 'rsrc/css/phui/phui-property-list-view.css' => '27b2849e', 'rsrc/css/phui/phui-remarkup-preview.css' => '1a8f2591', 'rsrc/css/phui/phui-spacing.css' => '042804d6', @@ -822,7 +822,7 @@ return array( 'phui-object-item-list-view-css' => '26c30d3f', 'phui-pager-css' => 'bea33d23', 'phui-pinboard-view-css' => '2495140e', - 'phui-profile-menu-css' => 'e8030bb3', + 'phui-profile-menu-css' => 'a26fa598', 'phui-property-list-view-css' => '27b2849e', 'phui-remarkup-preview-css' => '1a8f2591', 'phui-spacing-css' => '042804d6', diff --git a/webroot/rsrc/css/phui/phui-profile-menu.css b/webroot/rsrc/css/phui/phui-profile-menu.css index 6616876077..1434475ef3 100644 --- a/webroot/rsrc/css/phui/phui-profile-menu.css +++ b/webroot/rsrc/css/phui/phui-profile-menu.css @@ -17,7 +17,9 @@ position: relative; vertical-align: top; width: 240px; + max-width: 240px; margin-top: 0; + overflow: hidden; } .device-desktop .phui-profile-menu .phabricator-nav-content {