Calculate the offset of the page, for the message to be in the center of the page

Open Beginner friendly
#40,619 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
frontend

Research direction

Start at apps/meteor/client/views/room/MessageList/hooks/useTryToJumpToMessage.ts#L67-L72 and inspect how the jump-to-message hook currently determines the page offset. Update the offset behavior so the target message is centered in the page, then verify the jump behavior in the room message view.

Written by the indexing model from the issue text.

Description

todo type: feature

📝 Found in apps/meteor/client/views/room/MessageList/hooks/useTryToJumpToMessage.ts#L67

Commit: c026bf3234d731ea79e18bb8ce6285c6ccea8a0e

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
132

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RocketChat/Rocket.Chat

All issues in RocketChat/Rocket.Chat

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.