text icon indicating copy to clipboard operation
text copied to clipboard

No way to undo headline formating

Open schiessle opened this issue 2 years ago • 8 comments

If you write a text with some headlines and later want to revert a headline to normal text there is no way beside deleting the line and write it again.

All other formatting options can be undo by clicking it again (bold, italic, bullet points,...). For headlines I only have the option to chose another headline level but not to go back to "normal text":

image

schiessle avatar Jan 09 '24 17:01 schiessle

You can untoggle the heading by just selecting the same heading level from the menu. We used to have a button to reset to paragraph but that was removed during a design review iirc.

cc @nextcloud/designers

juliusknorr avatar Jan 09 '24 19:01 juliusknorr

I think something akin to "paragraph" should definitely be in that menu, along with all other text styles such as quote, code block, etc.
This would:

  • Clear up space in the toolbar
  • Make those functionalities clearer because those buttons would be labeled

ref (notion): Screenshot from 2024-01-10 13-31-11

marcoambrosini avatar Jan 10 '24 12:01 marcoambrosini

The problem is that the trigger button for the menu currently indicates the state of the current cursor. If we add more entries to that and still use that indication the headline actions would be too hidden i think.

juliusknorr avatar Jan 10 '24 16:01 juliusknorr

What about adding a label like Notion so that it's clearer that text styles and other blocks are underneath that menu? I think there would be a lot to gain from this simplification. Especially given the current amount of unlabeled buttons.

marcoambrosini avatar Jan 10 '24 16:01 marcoambrosini

I think this is something where some mockups could help to visualize how that could fit in the current UI. Especially on mobile we are quite limited on how much space we have there.

juliusknorr avatar Jan 10 '24 16:01 juliusknorr

Also https://github.com/nextcloud/text/issues/2836 might have a few points to consider when thinking about redesigning the menu bar.

juliusknorr avatar Jan 10 '24 19:01 juliusknorr

So in my opinion actually the chosen Headline should be selected so that if you click on it, it gets unselected, something like this:

H2 selected No headline selected
image image

Then you can disable the heading by simply clicking on it. WDYT @marcoambrosini @juliushaertl ? :)

szaimen avatar Jan 11 '24 08:01 szaimen

@szaimen as a quick fix, yes that would work. But I'd still think that it would be nicer to have a text "styles" menu.

marcoambrosini avatar Jan 11 '24 08:01 marcoambrosini