Automattic / Automattic/simplenote-electron

Note list: Note preview in "expanded" duplicates first line of note if note starts with newlines

Open
#2,373 1 comment 0 reactions 0 assignees View on GitHub
[feature] note list bug NewMember
Dominant language
TypeScript
Stars
5.3k
Forks
588
Avg merge
9h 45m
Merged PRs (30d)
4

Description

I had a note named "3". I hit enter a few times at the top of the note to remove the title. I ended up with the following:

Screen Shot 2020-09-29 at 10 14 57 PM

Deleting the newlines at the beginning of the note fixes the preview:

Screen Shot 2020-09-29 at 10 16 09 PM

There's a height bug here as well which might be related:

Screen Shot 2020-09-29 at 10 16 34 PM

Reproduced in Electron and Firefox/OSX.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the note list's expanded preview using a note that begins with several newlines, in Electron or Firefox on macOS. Inspect the note preview rendering and its height behavior; done means the first line is not duplicated and the preview height is correct without leading-newline workarounds.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.