[PR #4233] [MERGED] Fixes #4228: Fix display of device images in rack elevations #12799

Closed
opened 2025-12-29 22:23:41 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4233
Author: @jeremystretch
Created: 2/21/2020
Status: Merged
Merged: 2/21/2020
Merged by: @jeremystretch

Base: developHead: 4228-rack-elevation-images


📝 Commits (4)

📊 Changes

5 files changed (+39 additions, -17 deletions)

View changed files

📝 docs/release-notes/version-2.7.md (+8 -0)
📝 netbox/dcim/constants.py (+3 -3)
📝 netbox/dcim/elevations.py (+21 -9)
📝 netbox/project-static/css/base.css (+2 -2)
📝 netbox/templates/dcim/inc/rack_elevation.html (+5 -3)

📄 Description

Fixes: #4228

  • Correct the width of the SVG device element
  • Change the default width and height of a rack unit from (230, 20) to (220, 22) to achieve a proper aspect ratio

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/4233 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 2/21/2020 **Status:** ✅ Merged **Merged:** 2/21/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `4228-rack-elevation-images` --- ### 📝 Commits (4) - [`cf312e9`](https://github.com/netbox-community/netbox/commit/cf312e969047948cc67c2927ba6d63c40c02f85a) Changelog for #4224 - [`5a02dc4`](https://github.com/netbox-community/netbox/commit/5a02dc457cdf824150e087c5aa60104ba0400d0e) Fixes #4228: Fit device images to rack unit; tweak default aspect ratio - [`8ffba6a`](https://github.com/netbox-community/netbox/commit/8ffba6a279484fe22bdcd4c0013a78b76d0b9a19) Clean up rack view CSS - [`329740d`](https://github.com/netbox-community/netbox/commit/329740d2a7025e5aabfe52c0c87d087cf9337305) Add "Save SVG" link beneath rack elevation display ### 📊 Changes **5 files changed** (+39 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `docs/release-notes/version-2.7.md` (+8 -0) 📝 `netbox/dcim/constants.py` (+3 -3) 📝 `netbox/dcim/elevations.py` (+21 -9) 📝 `netbox/project-static/css/base.css` (+2 -2) 📝 `netbox/templates/dcim/inc/rack_elevation.html` (+5 -3) </details> ### 📄 Description ### Fixes: #4228 - Correct the width of the SVG device element - Change the default width and height of a rack unit from `(230, 20)` to `(220, 22)` to achieve a proper aspect ratio --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:23:41 +01:00
adam closed this issue 2025-12-29 22:23:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12799