Skip to content

Rack elevation images override page styling when loading in #20043

@aq5747

Description

@aq5747

Deployment Type

Self-hosted

NetBox Version

v4.3.5

Python Version

3.10

Steps to Reproduce

  1. Go to a device page which is assigned to a rack and position (thus will show a rack elevation image)
  2. Make sure the window is small enough so that the rack elevation image hasn't loaded yet
  3. Scroll down the page slowly until the rack image lazy loads in
  4. Notice how the entire page "shifts" and some elements change styles as soon as the rack elevation image loads (Very noticeable on table headers).

Expected Behavior

Loading of rack images should not override the styling of the page.

Observed Behavior

Some of the styling from the rack elevation SVG image is also being applied to the page itself after the image lazy loads in. When the rack image loads you can see the entire device page "shift" as some styling is updated. This is very noticeable with table headers on the page, such as the one on the Images card right above the rack. This happens on any page where a rack elevation image loads but is most noticeable on the device page.

Image

This seems like it's related to the lazy loading of the rack image (#19550), as this doesn't happen in v4.3.3 or earlier.

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions