Striped rendering of opposing rack face varies (depends on rack height?) #3373

Closed
opened 2025-12-29 18:28:30 +01:00 by adam · 0 comments
Owner

Originally created by @candlerb on GitHub (Feb 21, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.5.2
  • NetBox version: 2.7.7

Steps to Reproduce

This is a very minor one, but I thought I would mention it anyway.

  1. Create a rack of height 6U and one of height 47U
  2. Add some devices on the front which are not full depth
  3. Check the rendering of the rear side (the grey stripes)

I am checking with Chrome 80.0.3987.116 under macOS.

Expected Behavior

Visually consistent rendering

Observed Behavior

With the 6U rack, the stripes are tightly packed:

image

With the 47U rack, the stripes are thick:

image

Both racks have the same styles referenced from the rect element, and both have the same definition of element #occupied used as the fill:

<linearGradient gradientTransform="rotate(45, 0, 0)" gradientUnits="userSpaceOnUse" id="occupied" spreadMethod="repeat" x1="0" x2="0" y1="0%" y2="5%">
  <stop offset="0%" stop-color="#f7f7f7" />
  <stop offset="50%" stop-color="#f7f7f7" />
  <stop offset="50%" stop-color="#d7d7d7" />
  <stop offset="100%" stop-color="#d7d7d7" />
</linearGradient>
Originally created by @candlerb on GitHub (Feb 21, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.5.2 * NetBox version: 2.7.7 ### Steps to Reproduce This is a very minor one, but I thought I would mention it anyway. 1. Create a rack of height 6U and one of height 47U 2. Add some devices on the front which are not full depth 3. Check the rendering of the rear side (the grey stripes) I am checking with Chrome 80.0.3987.116 under macOS. ### Expected Behavior Visually consistent rendering ### Observed Behavior With the 6U rack, the stripes are tightly packed: ![image](https://user-images.githubusercontent.com/44789/75054331-c8f75200-54ca-11ea-9424-5e044eea32fd.png) With the 47U rack, the stripes are thick: ![image](https://user-images.githubusercontent.com/44789/75054395-e6c4b700-54ca-11ea-99fc-ddfb9f0d6977.png) Both racks have the same styles referenced from the rect element, and both have the same definition of element `#occupied` used as the fill: ``` <linearGradient gradientTransform="rotate(45, 0, 0)" gradientUnits="userSpaceOnUse" id="occupied" spreadMethod="repeat" x1="0" x2="0" y1="0%" y2="5%"> <stop offset="0%" stop-color="#f7f7f7" /> <stop offset="50%" stop-color="#f7f7f7" /> <stop offset="50%" stop-color="#d7d7d7" /> <stop offset="100%" stop-color="#d7d7d7" /> </linearGradient> ```
adam added the type: bugstatus: accepted labels 2025-12-29 18:28:30 +01:00
adam closed this issue 2025-12-29 18:28:30 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3373