Fix sticky header on work items and legacy issuables
What does this MR do and why?
When the nav sidebar is collapsed but the user is in a wide viewport, the sticky sidebar has alignment issues. This is because a sass variable with a fixed value is being used when a css variable with an updated value should be used instead.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
| Issue type | Before | After |
|---|---|---|
| Legacy issue (nav collapsed) | ![]() |
![]() |
| Legacy issue (nav and right sidebar collapsed) | ![]() |
![]() |
| Work item | ![]() |
![]() |
How to set up and validate locally
- Check out this branch
- Visit a legacy issue in the GDK
- make sure your viewport is very wide (use devtools to simulate a very wide viewport if necessary)
- collapse both the nav and the right sidebar
- scroll down so that the sticky header shows
- You will see that the sticky header content matches the width and left/right margins of the description
- Visit a work item
- (collapse the nav again and make sure you are in a very wide viewport if necessary/not already true from previous steps)
- scroll so that the sticky header shows
- You will see that the sticky header has the correct width and left/right margins
Related to #479988 (closed), #469616 (closed)
Edited by Chad Lavimoniere





