Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / application / _svg_div.html.erb
index 4587534801c42055d774bb609ad43f325e42f0a5..8a417d9e0ea3ad7e6af3df3cd74e81daa9c034ea 100644 (file)
@@ -1,3 +1,7 @@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
 <%= content_for :css do %>
 /* Need separate style for each instance of svg div because javascript will manipulate the properties. */
 #<%= divId %> {
@@ -6,8 +10,9 @@
  border: solid;
  border-width: 1px;
  border-color: gray;
- left: 1px;
- right: 1px;
+ position: absolute;
+ left: 25px;
+ right: 25px;
 }
 path:hover {
 stroke-width: 5;
@@ -23,7 +28,7 @@ stroke-linecap: round;
     });
 <% end %>
 
-<div id="_<%= divId %>_container" style="padding-top: 41px; margin-top: -41px">
+<div id="_<%= divId %>_container">
   <div style="text-align: right">
     <a style="cursor: pointer"><span class="glyphicon glyphicon-zoom-out" onclick="graph_zoom('<%= divId %>', '<%= svgId %>', .9)"></span></a>
     <a style="cursor: pointer"><span class="glyphicon glyphicon-zoom-in" onclick="graph_zoom('<%= divId %>', '<%= svgId %>', 1./.9)"></span></a>
@@ -33,5 +38,4 @@ stroke-linecap: round;
     <span id="_<%= divId %>_center" style="padding-left: 0px"></span>
     <%= raw(svg) %>
   </div>
-  <div id="_<%= divId %>_padding" style="padding-bottom: 1em"></div>
 </div>