NotionX / NotionX/react-notion-x

Move header hash link to end of header text to avoid getting cut off on mobile

Open
#416 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.4k
Forks
645
PR merge metrics
No merged PRs in 30d

Description

Description

When viewing on mobile, the header hash link gets cut off due to negative margin.

See screenshot below of this page in the test suite.
image

I think the easiest way to resolve this issue is to move the link icon to the end of the header rather than the beginning. This is the approach taken by a couple other websites I checked.

I'm happy to submit a PR if we're aligned on the approach!

Notion Test Page ID

https://react-notion-x-demo.transitivebullsh.it/0be6efce9daf42688f65c76b89f8eb27

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 with the header rendering entry point used for the linked Notion test page and reproduce the mobile screenshot at https://react-notion-x-demo.transitivebullsh.it/0be6efce9daf42688f65c76b89f8eb27. Verify the hash link is positioned at the end of the header text and is no longer cut off on mobile.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, 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.