From 3267553af1d161a0748b8b2c05346f8ccb9c872b Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Thu, 12 Jul 2012 15:26:07 -0700 Subject: [PATCH] Detail view: Fix layout of text actions --- ui/css/cloudstack3.css | 8 +++++++- ui/scripts/ui/widgets/detailView.js | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ui/css/cloudstack3.css b/ui/css/cloudstack3.css index a571b0ab45d..79434abaf2b 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; } diff --git a/ui/scripts/ui/widgets/detailView.js b/ui/scripts/ui/widgets/detailView.js index 904e4680d27..05341c21e87 100644 --- a/ui/scripts/ui/widgets/detailView.js +++ b/ui/scripts/ui/widgets/detailView.js @@ -637,7 +637,7 @@ if (value.textLabel) { $action - .addClass('text') + .addClass('single text') .prepend( $('').addClass('label').html(_l(value.textLabel)) ); @@ -646,7 +646,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 {