Repository: cloudstack
Updated Branches:
  refs/heads/master 94b16b3bd -> 160fc1371


Project dashboard: Fix user label overflow

Adds text-overflow for long user names on project dashboard


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/160fc137
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/160fc137
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/160fc137

Branch: refs/heads/master
Commit: 160fc13713d1ee7a7d5990f43f1e553fff34848b
Parents: 94b16b3
Author: Brian Federle <[email protected]>
Authored: Thu Oct 23 11:29:02 2014 -0700
Committer: Brian Federle <[email protected]>
Committed: Wed Oct 29 11:07:48 2014 -0700

----------------------------------------------------------------------
 ui/css/cloudstack3.css           | 18 +++++++++++-------
 ui/scripts/ui-custom/projects.js |  3 ++-
 2 files changed, 13 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/160fc137/ui/css/cloudstack3.css
----------------------------------------------------------------------
diff --git a/ui/css/cloudstack3.css b/ui/css/cloudstack3.css
index a2f0d2c..3ae2ed4 100644
--- a/ui/css/cloudstack3.css
+++ b/ui/css/cloudstack3.css
@@ -10012,13 +10012,17 @@ div.container div.panel 
div#details-tab-addloadBalancer.detail-group div.loadBal
 }
 
 .project-dashboard-view .users .system-dashboard li .header {
-  width: 77px;
-  /*+placement:shift 7px 110px;*/
-  position: relative;
-  left: 7px;
-  top: 110px;
-  position: absolute;
-  text-align: center;
+    width: 77px;
+    max-width: 77px;
+    /*+placement:shift 7px 110px;*/
+    position: relative;
+    left: 7px;
+    top: 110px;
+    position: absolute;
+    text-align: center;
+    overflow: hidden;
+    white-space: nowrap;
+    text-overflow: ellipsis;
 }
 
 /**** Info box*/

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/160fc137/ui/scripts/ui-custom/projects.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/projects.js b/ui/scripts/ui-custom/projects.js
index d897ac9..372c6e5 100644
--- a/ui/scripts/ui-custom/projects.js
+++ b/ui/scripts/ui-custom/projects.js
@@ -106,7 +106,8 @@
                                             $.each(item, function(arrayKey, 
arrayValue) {
                                                 var $arrayElem = 
$li.find('[data-list-item=' + arrayKey + ']');
 
-                                                
$arrayElem.html(_s(arrayValue));
+                                                
$arrayElem.text(_s(arrayValue));
+                                                $arrayElem.attr('title', 
_s(arrayValue));
                                             });
 
                                             $li.attr({

Reply via email to