jupytercalpoly / jupyterlab-richtext-mode

JupyterLab extension for rich text editing in the notebook
43 stars 18 forks source link

Explore per-cell UI #44

Open isabela-pf opened 4 years ago

isabela-pf commented 4 years ago

When exploring where the formatting buttons could be placed in the existing UI, one of the options we considered was a per-cell UI. This means that the formatting buttons would only appear near a Markdown cell in edit mode (instead of being persistent buttons on the toolbar as they currently are).

Reasons to explore

Potential problems

I will follow up with mockups to give a better idea of potential UI.

isabela-pf commented 4 years ago

Here are our top two options for how per-cell UI could appear. Both are not persistent toolbars and only appear when a Markdown cell is in edit mode.

First is above cell UI. It sits on the top of the Markdown cell, but, like the borderless Markdown cell itself, does not have borders but only the divider line to define the content area versus toolbar. It looks like this:

Above Cell 1

There could be some issues here if there is a long Markdown cell. If the toolbar stays only at the top of the cell, then you would not be able to style via button without scrolling back up. And I don't know if it's ideal to have the toolbar be sticky and overlap with text content.

Second is a UI that rests to the left of the a markdown cell. It could either be sticky, or appear next to the selected Markdown cell; I haven't decided to which might be better UX-wise.

Sticky 3

This choice has issues because we can't use the same menu structure that we currently do, or at least not without modification, because the toolbar is no longer a long, horizontal bar but rather is more vertical. We would have to think about how the menus would change or if the content would overflow somewhere (like the side panel).