Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

notebooks: improvements to the read-only mode#39407

Merged
novoselrok merged 2 commits into
mainfrom
rn/notebook-read-only-improvements
Jul 27, 2022
Merged

notebooks: improvements to the read-only mode#39407
novoselrok merged 2 commits into
mainfrom
rn/notebook-read-only-improvements

Conversation

@novoselrok

@novoselrok novoselrok commented Jul 26, 2022

Copy link
Copy Markdown
Contributor

Improvements:

  • Line height property is now proportional to the font size in Markdown blocks
  • Blocks are not selectable/hoverable in read-only mode
  • Reduced vertical padding between blocks in read-only mode

Screenshots

Current read-only mode:

Screenshot 2022-07-26 at 09 46 20

New read-only mode:

Screenshot 2022-07-26 at 09 46 12

Demo

Left - new read-only mode, Right - old read-only mode

Screen.Recording.2022-07-26.at.09.46.55.mp4

Test plan

  • Open a notebook with permissions to edit
  • Notebook should still be editable
  • Open a read-only notebook
  • Blocks should not be selectable
  • Blocks should not have a border on hover

App preview:

Check out the client app preview documentation to learn more.

@novoselrok novoselrok requested a review from a team July 26, 2022 07:54
@cla-bot cla-bot Bot added the cla-signed label Jul 26, 2022

@fkling fkling left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

}

:global(.is-read-only-notebook) &:hover {
border: 1px solid transparent;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could probably just to border-color: transparent, but no big deal.

@novoselrok novoselrok merged commit cd1391b into main Jul 27, 2022
@novoselrok novoselrok deleted the rn/notebook-read-only-improvements branch July 27, 2022 06:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants