NotionX / NotionX/react-notion-x

Notion Icon aligned left.

Open
#266 1 comment 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

This is original notion page.
스크린샷 2022-04-12 오후 12 26 57

And then NotionRenderer result.
스크린샷 2022-04-12 오후 12 24 57

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.
스크린샷 2022-04-12 오후 12 38 37

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.
스크린샷 2022-04-12 오후 12 41 45

Notion Test Page ID

Page ID: https://www.notion.so/React-Notion-X-List-Test-8cd35eb807b247f68d92d13238112a59

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.