aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/dependencies/dependencies_viewer.html.erb28
-rw-r--r--sonar-server/src/main/webapp/stylesheets/style.css25
2 files changed, 29 insertions, 24 deletions
diff --git a/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/dependencies/dependencies_viewer.html.erb b/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/dependencies/dependencies_viewer.html.erb
index db5fccb2591..4ff8389a161 100644
--- a/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/dependencies/dependencies_viewer.html.erb
+++ b/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/dependencies/dependencies_viewer.html.erb
@@ -20,28 +20,26 @@
deps = deps_by_m[:dependencies]
%>
- <div id="<%= metric_name -%>-deps" style="float: left">
- <table class="col">
- <thead>
- <tr class="coltitle">
- <th class="thin"></th>
- <th><%= message('dependencies.' + metric_name) -%>: <b><%= format_measure(measure) -%></b></th>
- </tr>
- </thead>
+ <div id="<%= metric_name -%>-deps" class="col">
+
+ <div class="coltitle">
+ <%= message('dependencies.' + metric_name) -%>: <b><%= format_measure(measure) -%></b>
+ </div>
- <tbody>
+ <% unless deps.empty? %>
+ <div class="colbody">
<%
deps.each do |dep|
resource = metric_name=='ca' ? dep.from : dep.to
%>
- <tr>
- <td class="thin"><%= image_tag 'q/CLA.png'-%></td>
- <td><%= link_to_resource resource, resource.long_name, {:tab => 'dependencies'} -%> (<%= dep.weight -%>)</td>
- </tr>
+ <div>
+ <%= image_tag 'q/CLA.png'-%>
+ <%= link_to_resource resource, resource.long_name, {:tab => 'dependencies'} -%> (<%= dep.weight -%>)
+ </div>
<% end %>
- </tbody>
+ </div>
+ <% end %>
- </table>
</div>
<% end %>
diff --git a/sonar-server/src/main/webapp/stylesheets/style.css b/sonar-server/src/main/webapp/stylesheets/style.css
index de521779d26..91b76e0748e 100644
--- a/sonar-server/src/main/webapp/stylesheets/style.css
+++ b/sonar-server/src/main/webapp/stylesheets/style.css
@@ -2501,20 +2501,27 @@ select.medium-width {
padding: 10px;
}
+#dependencies .col {
+ float: left;
+ margin: 0 10px 0 0;
+ border: 1px solid #ccc;
+}
+
#dependencies .coltitle {
+ padding: 3px 10px;
+ text-align: center;
background-color: #efefef;
+}
+
+#dependencies .colbody {
padding: 3px;
border-top: 1px solid #ccc;
- border-bottom: 1px solid #ccc;
}
-#dependencies .col {
- margin: 0 10px 0 0;
- border-right: 1px solid #ccc;
- border-left: 1px solid #ccc;
- border-bottom: 1px solid #ccc;
+#dependencies .colbody > div {
+ padding: 3px;
}
-#dependencies .col td, #dependencies .col th {
- padding: 3px 5px;
-} \ No newline at end of file
+#dependencies .colbody > div > img {
+ //vertical-align: baseline;
+}