1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

dcim: fix #3964 by moving away from properties to inline styles

This commit is contained in:
hellerve
2020-01-21 16:06:15 +01:00
parent 606f3dacbb
commit 5f3f21215a

View File

@@ -395,7 +395,7 @@ class RackElevationHelperMixin:
fill='black'
)
)
link.add(drawing.rect(start, end, fill='#{}'.format(color)))
link.add(drawing.rect(start, end, style='fill: #{}'.format(color), class_='slot'))
hex_color = '#{}'.format(foreground_color(color))
link.add(drawing.text(device.name, insert=text, fill=hex_color))