Просмотр исходного кода

Fixes #4232: Enforce consistent background striping in rack elevations

Jeremy Stretch 6 лет назад
Родитель
Сommit
a14c7980f6
2 измененных файлов с 3 добавлено и 2 удалено
  1. 1 0
      docs/release-notes/version-2.7.md
  2. 2 2
      netbox/dcim/elevations.py

+ 1 - 0
docs/release-notes/version-2.7.md

@@ -3,6 +3,7 @@
 ## Bug Fixes
 
 * [#4224](https://github.com/netbox-community/netbox/issues/4224) - Fix display of rear device image if front image is not defined 
+* [#4232](https://github.com/netbox-community/netbox/issues/4232) - Enforce consistent background striping in rack elevations
 
 ---
 

+ 2 - 2
netbox/dcim/elevations.py

@@ -22,8 +22,8 @@ class RackElevationSVG:
     @staticmethod
     def _add_gradient(drawing, id_, color):
         gradient = drawing.linearGradient(
-            start=('0', '0%'),
-            end=('0', '5%'),
+            start=(0, 0),
+            end=(0, 25),
             spreadMethod='repeat',
             id_=id_,
             gradientTransform='rotate(45, 0, 0)',