Scroll block into view - scroll margin
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 40/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- frontend
Research direction
Start by locating the code that scrolls blocks into view when creating a node with Enter, then inspect how floating menu bars can overlap the viewport edges. Decide whether completion should use occlusion-aware scrolling or configurable offsets, and verify that a newly focused block remains fully visible behind no toolbar.
Written by the indexing model from the issue text.
Description
Svedit scrolls blocks into view, e.g. when creating a new node by pressing enter.
The issue is though that there might be floating menu bar at any 4 sides of the screen.
The scroll into view may such scroll the element into view, but hidden behind a toolbar.
Ideas:
- Smart scroll into view: is the element occluded? How far does the offset need to change for it to be fully visible? Pro: no configuration needed, works also with toolbars that are contextual, sticky, etc.
- Configuration: set an offset for any of the 4 sides of the screen
[100, 0, 0, 0]. Pro: simple. Con: extra work, not dynamic/ contextual
- Dominant language
- TypeScript
- Stars
- 675
- Forks
- 18
- Avg merge
- 5h 11m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from michael/svedit
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Keyboard First Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·