fleet icon indicating copy to clipboard operation
fleet copied to clipboard

Page layout shifts left when delete modal opens on labels/fleets/users pages

Open Brajim20 opened this issue 4 months ago • 6 comments

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.
  1. Log in to Fleet
  2. Navigate to Settings → Labels page
  3. Ensure the page fits in viewport (no vertical scrollbar visible initially)
  4. Click the Actions dropdown on the last label in the table
  5. Click "Delete" to open the delete confirmation modal
  6. 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 avatar Jul 06 '26 18:07 Brajim20

@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 avatar Jul 15 '26 18:07 RachelElysia

@RachelElysia Sorry the wording might of been off on the ticket.

Labels :

Image

Users :

  • table shifts
  • the drop down changes a little bit.

https://github.com/user-attachments/assets/e3b60b8b-720f-4f3d-badf-96aee8f3ef17

fleets

Image

Brajim20 avatar Jul 15 '26 22:07 Brajim20

@Brajim20 @RachelElysia, I took a shot at this, opened #49430 .

rrahul-1 avatar Jul 16 '26 17:07 rrahul-1

Image

RachelElysia avatar Jul 23 '26 14:07 RachelElysia

Tested on 4.91.0 (Main)

PASSED ✅

Users

Image

Create users

Image

Fleets

Image

Labels

Image

Brajim20 avatar Aug 05 '26 17:08 Brajim20

Page shifts left when scrollbar appears on the still glass surface balance restored now

fleet-release avatar Sep 02 '26 22:09 fleet-release