mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-15 19:52:52 -06:00
dcim: fix #3964 by moving away from properties to inline styles
This commit is contained in:
parent
606f3dacbb
commit
5f3f21215a
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user