diff options
3 files changed, 12 insertions, 17 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_configure_widget.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_configure_widget.html.erb index a35dbe02ed8..73e6b8429eb 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_configure_widget.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_configure_widget.html.erb @@ -22,7 +22,7 @@ </div> <% end %> -<div id="widget_<%= definition.getId().tr('_', '') -%>" class="content <%= definition.getId() -%>" style="height:100%;"> +<div id="widget_<%= definition.getId().tr('_', '') -%>" class="edited_widget <%= definition.getId() -%>" style="height:100%;"> <!--[if lte IE 6]> <style type="text/css"> #dashboard .block .content .transparent { diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb index 5605bda6cff..3765363dcdd 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb @@ -6,13 +6,11 @@ column: 'dashboard-column', columnhandle: 'column-handle', block: 'block', - content: 'content', handle: 'none', hoverclass: 'block-hover', dashboardstate: 'dashboardstate', toggle: 'block-toggle', blocklist: 'dashboard-block-carousel', - widgetedit: 'widgetedit', highlight_duration: 2, highlight_startcolor: '#ffff99', highlight_endcolor: '#ffffff', @@ -41,7 +39,7 @@ <div id="dashboard-block-carousel" class="admin marginbottom10"> <div id="dashboard-block-container" class="container"> - <div id="widget_definitions"> + <div id="widget_defs"> <ul> <% @widget_definitions.each_with_index do |definition, index| %> <li> diff --git a/sonar-server/src/main/webapp/stylesheets/dashboard.css b/sonar-server/src/main/webapp/stylesheets/dashboard.css index 84a2f38dfe7..031e023f582 100644 --- a/sonar-server/src/main/webapp/stylesheets/dashboard.css +++ b/sonar-server/src/main/webapp/stylesheets/dashboard.css @@ -50,28 +50,33 @@ } /* WIDGETS */ -.widget { +#dashboard .widget { position: relative; overflow-x: visible; padding: 10px; margin: 0 0 10px 0; border: 1px solid #ddd; } +#dashboard .edited_widget { + display: block; + position: relative; +} + /*CONFIGURATION*/ -#dashboard #widget_definitions { +#dashboard #widget_defs { width: 100%; overflow: auto; } -#dashboard #widget_definitions ul { +#dashboard #widget_defs ul { list-style-type: none; margin: 0; white-space: nowrap; width: 100000px; } -#dashboard #widget_definitions li { +#dashboard #widget_defs li { float: left; margin: 0; padding: 2px 7px; @@ -178,15 +183,7 @@ text-decoration: underline; } -#dashboard .block .widgetedit { - display: block; - position: relative; - padding: 8px 5px 5px 8px; - overflow-x: auto; - border: 1px solid #ddd; -} - -#dashboard .block .transparent { +#dashboard .transparent { cursor: move; } |