Markdown preview layout jumps/reflows, shifting action buttons and causing an unintended ‘Undo file’ click

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Markdown preview layout jumps/reflows, shifting action buttons and causing an unintended ‘Undo file’ click.

Steps to Reproduce

After agent is updating ReadMe.md and wanting to review, switching between preview and markdown mode is shifting the Keep-all-changes/Undo File buttons in a way that is very easy to click on Undo File instead of preview/markdown mode.
I did accidentally Undo the changes more than once

Expected Behavior

Buttons under the mouse cursor should not change unpredictable.

Screenshots / Screen Recordings

MD - preview vs Undo&KeepChanges-v2-2026-09-23 111057.gif

Operating System

Windows 10/11

Version Information

Version: 3.21.16 (user setup)
VS Code Extension API: 1.128.0
Commit: 8ae78e8eee1e63479c7e0504b664bc0a80c68000
Date: 2026-09-19T06:43:22.276Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 42.10.0
Chromium: 148.0.7778.280
Node.js: 24.18.1
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Windows_NT x64 10.0.26200

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey @Florin_Strugaru, thanks for the report and the recording. Sorry the layout shift made you undo those edits.

Preview / Markdown and Undo File / Keep File share the same row under the tabs. The review buttons only show in Markdown mode, so switching modes shifts that row and Undo File can land under your pointer. This is a known issue we’re tracking, and we’ve let the team know.

To move the review buttons out of that row: Cursor Settings (Ctrl+Shift+J) > General > Layout, then set Review Control Location to Island. Undo File and Keep File show in a floating bar in the editor instead.

This works for me. Thanks
I think it should become the default option for everyone (if other option to not reflow the buttons is not found)