RocketChat / RocketChat/Rocket.Chat

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.

todo type: feature
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

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

Commit: c026bf3234d731ea79e18bb8ce6285c6ccea8a0e

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.