NotionX / NotionX/react-notion-x
Notion Icon aligned left.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.4k
- Forks
- 645
- PR merge metrics
- No merged PRs in 30d
Description
Description
This is original notion page.

And then NotionRenderer result.

It caused by "left: 50%" in class "notion-page-icon-hero" at "react-notion-x/src/styles.css".
.notion-page-icon-hero {
position: absolute;
top: 0;
left: 50%;
display: flex;
flex-direction: row;
justify-content: center;
}
This is delete "left: 50%" result in browser.

Also "margin-left: -39px" in class ".notion-page-icon-hero.notion-page-icon-span " too problem.
.notion-page-icon-hero.notion-page-icon-span {
height: 78px;
width: 78px;
margin-left: -39px;
}
This is delete "margin-left: -39px" result in browser.

Notion Test Page ID
Page ID: https://www.notion.so/React-Notion-X-List-Test-8cd35eb807b247f68d92d13238112a59
Contributor guide
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.
Research direction
Start in react-notion-x/src/styles.css and inspect the .notion-page-icon-hero and .notion-page-icon-span rules described in the issue. Compare the renderer with the linked public Notion test page and confirm the icon is aligned like the original page without the reported positioning offsets.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100