cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [2/2] git commit: Detail view: Fix layout of text actions
Date Thu, 12 Jul 2012 22:29:28 GMT
Detail view: Fix layout of text actions


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

Branch: refs/heads/master
Commit: 50373b99d66775f421bc63a5343deb83e60576f8
Parents: 2a971d7
Author: Brian Federle <brian.federle@citrix.com>
Authored: Thu Jul 12 15:26:07 2012 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Thu Jul 12 15:29:15 2012 -0700

----------------------------------------------------------------------
 ui/css/cloudstack3.css              |    8 +++++++-
 ui/scripts/ui/widgets/detailView.js |    4 ++--
 2 files changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/50373b99/ui/css/cloudstack3.css
----------------------------------------------------------------------
diff --git a/ui/css/cloudstack3.css b/ui/css/cloudstack3.css
index 2af3c47..ef81697 100644
--- a/ui/css/cloudstack3.css
+++ b/ui/css/cloudstack3.css
@@ -1672,9 +1672,11 @@ div.detail-group.actions td {
 }
 
 .detail-group table td.detail-actions .action.text {
-  padding: 4px 6px 4px 7px;
+  padding: 0px 6px 0px 0px;
   cursor: pointer;
   display: inline-block;
+  float: right;
+  margin-right: 8px;
   border: 1px solid #C2C2C2;
   /*+border-radius:4px;*/
   -moz-border-radius: 4px;
@@ -1746,6 +1748,10 @@ div.detail-group.actions td {
   background-position: -414px -625px;
 }
 
+.detail-group table td.detail-actions div.action.text a {
+  background: none;
+}
+
 .detail-group table td.detail-actions div.action.single a:hover {
   background-position: -414px -587px;
 }

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/50373b99/ui/scripts/ui/widgets/detailView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/detailView.js b/ui/scripts/ui/widgets/detailView.js
index f703395..b1e9a68 100644
--- a/ui/scripts/ui/widgets/detailView.js
+++ b/ui/scripts/ui/widgets/detailView.js
@@ -643,7 +643,7 @@
 
         if (value.textLabel) {
           $action
-            .addClass('text')
+            .addClass('single text')
             .prepend(
               $('<span>').addClass('label').html(_l(value.textLabel))
             );
@@ -652,7 +652,7 @@
         return true;
       });
 
-      var $actionButtons = $actions.find('div.action');
+      var $actionButtons = $actions.find('div.action:not(.text)');
       if ($actionButtons.size() == 1)
         $actionButtons.addClass('single');
       else {


Mime
View raw message