Skip to content

Conversation

@abhi1693
Copy link
Member

@abhi1693 abhi1693 commented May 5, 2023

Fixes: #11900

Preview of how it looks
image

@abhi1693 abhi1693 requested a review from jeremystretch May 5, 2023 16:28
@jeremystretch
Copy link
Member

It looks like the righthand side of the reservation bar border is getting clipped. Stroke can be tricky to deal with: you may need to adjust the height/width of elements to accommodate the "extra" pixels added by the stroke width.

@abhi1693
Copy link
Member Author

abhi1693 commented May 6, 2023

0.1 subtraction may look wierd in the code but was needed to make the borders look symmetrical

image

@jeremystretch
Copy link
Member

I tweaked the stroke style and position a bit further to ensure that we're rendering the full 2px width on both sides, changed the stroke color to match the gradient, and added a bit of space between the rack border and the reservation block.

Screenshot 2023-05-09 at 09-57-24 Reservation for rack IDF128 NetBox

@jeremystretch jeremystretch merged commit 57156f0 into develop May 9, 2023
@jeremystretch jeremystretch deleted the feat/11900-reservation-view branch May 9, 2023 14:21
jsenecal pushed a commit to jsenecal/netbox that referenced this pull request May 18, 2023
* adds stroke to the reservation netbox-community#11900

* fixed right side border

* Tweak reserved stroke style & add constants for colors

---------

Co-authored-by: jeremystretch <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve readability of rack reservation in elevations

3 participants