Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

Toolbar view-mode buttons fix position when switching modes

Open oximoron-fr opened this issue 2 weeks ago • 4 comments

What problem would this solve?

Hi,

The toolbar layout changes depending on the current view mode, so the view-mode group (Edit / Split / Preview) moves horizontally every time I switch modes.

In Split mode, extra buttons (e.g. the sync-scroll 🔗 icon) appear before the group, pushing it to the right. In Edit or Preview mode they disappear and the group shifts back.

So the button I want to click keeps moving under the mouse, which is quite annoying when switching modes often.

Current behavior (Edit / Split / Preview):

image

What would you like?

Keep the view-mode group (Edit / Split / Preview) at a fixed position in the toolbar, whatever the current mode.

To do so, each contextual button keeps a reserved slot: when it's not relevant to the current mode, its slot stays empty instead of being removed. This way:

  • the view-mode group never moves,
  • contextual buttons (like the sync-scroll 🔗 in Split mode) appear and disappear without shifting anything,
  • each button always stays at the same place, so it's easy to find and click.

Mockup of the expected result (Edit / Split / Preview):

image

Has another app got this right?

Most editor keep their main toolbar controls in a stable position, and contextual actions don't move the core buttons around.

Thanks again for the great work on Markpad!

Which platform is this for?

All platforms

Your Markpad version and how you installed it

2.9.2

oximoron-fr avatar Nov 18 '26 02:11 oximoron-fr

In setting,we can adjust the button position,could you try it so you can keep the swithcer always at right?

PathGao avatar Nov 18 '26 05:11 PathGao

Thanks, that solves it. That said, it's not the most obvious either: if the view selector were placed on the far left by default, it would fix a usability issue out of the box, without anyone having to dig into the settings.

oximoron-fr avatar Nov 18 '26 21:11 oximoron-fr

We still want to give user some custom choice so thats it

PathGao avatar Nov 19 '26 07:11 PathGao

Quick follow-up: the default already keeps the view switcher at the far right, and since the bar is right-aligned, nothing can push it there. Your layout differs from the default, likely an older saved order carried over from before 2.8. Settings → Toolbars → Reset toolbar puts it back to the default.

PathGao avatar Nov 19 '26 07:11 PathGao