text icon indicating copy to clipboard operation
text copied to clipboard

Rich workspaces: move formatting bar in front of breadcrumbs

Open ya-d opened this issue 3 years ago β€’ 6 comments

Is your feature request related to a problem? Please describe. The rich workspaces feature adds a lot of unnecessary whitespace in the Files app as it reserves a vertical bar for formatting options – even if editing isn’t active or even if there is no readme at all.

If you enter the rich text area the whitespace is used to show the formatting bar. Which is again faded out if you exit text editing.

Describe the solution you'd like As the formatting bar is only displayed if you actively click into the rich text area, I propose to move the formatting bar in front of folder breadcrumbs. Additionally a close button could be shown where the view switch is located.

If you exit the editing mode by clicking anywhere or using the close button, breadcrumbs are back there to navigate folders.

Describe alternatives you've considered You can completely turn off rich workspaces but that strips the feature entirely not only the whitespace.

Quick mockups Current: rich1 rich2 Proposal: rich4 rich3

How to use GitHub

  • Please use the πŸ‘ reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

ya-d avatar Jan 27 '22 12:01 ya-d

Might be tricky to implement properly from a technical perspective, as currently the styling is quite simple with being limited to the container div, but UI wise let's see what @nimishavijay and @jancborchardt think.

juliusknorr avatar Mar 17 '22 17:03 juliusknorr

@jancborchardt Any feedback on this one?

juliusknorr avatar Nov 14 '22 21:11 juliusknorr

πŸ“ @nextcloud/designers

juliusknorr avatar Dec 04 '23 22:12 juliusknorr

I think we should use a formatting bar here (and everywhere else) like notion does

https://github.com/nextcloud-libraries/nextcloud-vue/issues/4355

marcoambrosini avatar Dec 05 '23 02:12 marcoambrosini

We had a floating menu in the past for inserting links / updating links but it was not discoverable to lots of users and caused major troubles with mobile devices, especially on conflicting with native mobile browser dialogs on selected text, so this is something I would not re-introduce in text.

juliusknorr avatar Dec 05 '23 07:12 juliusknorr

Agreed with Julius, a floating formatting bar works in theory, but there were many issues even just for formatting links.

Since the problem is about the extra whitespace (which I agree with), what if we have the following behavior:

  • when the rich workspace is not focused, remove that whitespace (so the height of that area will be lesser than it is currently)
  • on focus there is an increase in height of the rich workspace area and the formatting bar is shown
  • a transition/animation to smooth out the change

nimishavijay avatar Dec 05 '23 13:12 nimishavijay