Page layout shifts left when delete modal opens on labels/fleets/users pages
Fleet versions
- Discovered: 4.89.0-rc
- Reproduced: 4.88.0-rc
Web browser and operating system: Chrome on macOS
💥 Actual behavior
When opening a delete modal by clicking Actions > Delete on the last item in a labels/fleets/users table, the page content shifts left by approximately 15 pixels. The table and other page content noticeably jump to the left as the modal appears.
🛠️ Expected behavior
Dropdown menu should open above if there isn't enough space below. If there isn't enough space below or above, it should open on the side (similar to GitHub). Repositioning the page to make room for the dropdown is disorienting and looks like a bug.
🧑💻 Steps to reproduce
These steps:
- [x] Have been confirmed to consistently lead to reproduction in multiple Fleet instances.
- [ ] Describe the workflow that led to the error, but have not yet been reproduced in multiple Fleet instances.
- Log in to Fleet
- Navigate to Settings → Labels page
- Ensure the page fits in viewport (no vertical scrollbar visible initially)
- Click the Actions dropdown on the last label in the table
- Click "Delete" to open the delete confirmation modal
- Observe: Page content shifts left when modal appears
🕯️ More info
Root Cause: When the delete modal opens, the page body overflows, causing a vertical scrollbar to appear. This scrollbar (~15px wide) causes the body content to shift left.
Affected Pages:
- Labels (/labels/manage)
- Fleets (/admin/organizations/fleets)
- Users (/admin/users)
@Brajim20 -- Can you drop a screen recording for me? 🙏 I'm wondering for this one if you're seeing the shift because the dropdown closes which originally flowed off the page vertically and now since it closes, it shifts the page back up? I'm not quite sure how to reproduce
https://github.com/user-attachments/assets/0aa1b981-959e-45d9-a5af-4ae22fa2073a
@RachelElysia Sorry the wording might of been off on the ticket.
Labels :
Users :
- table shifts
- the drop down changes a little bit.
https://github.com/user-attachments/assets/e3b60b8b-720f-4f3d-badf-96aee8f3ef17
fleets
@Brajim20 @RachelElysia, I took a shot at this, opened #49430 .
Tested on 4.91.0 (Main)
PASSED ✅
Users
Create users
Fleets
Labels
Page shifts left when scrollbar appears on the still glass surface balance restored now