Skip to content

Conversation

matthewlipski
Copy link
Collaborator

@matthewlipski matthewlipski commented May 19, 2025

This PR fixes a few issues with the basic editor styling:

Closes #1687

Copy link

vercel bot commented May 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview May 20, 2025 0:32am
blocknote-website ❌ Failed (Inspect) May 20, 2025 0:32am

Copy link

pkg-pr-new bot commented May 19, 2025

Open in StackBlitz

@blocknote/ariakit

npm i https://pkg.pr.new/@blocknote/ariakit@1700

@blocknote/code-block

npm i https://pkg.pr.new/@blocknote/code-block@1700

@blocknote/core

npm i https://pkg.pr.new/@blocknote/core@1700

@blocknote/mantine

npm i https://pkg.pr.new/@blocknote/mantine@1700

@blocknote/server-util

npm i https://pkg.pr.new/@blocknote/server-util@1700

@blocknote/react

npm i https://pkg.pr.new/@blocknote/react@1700

@blocknote/shadcn

npm i https://pkg.pr.new/@blocknote/shadcn@1700

@blocknote/xl-docx-exporter

npm i https://pkg.pr.new/@blocknote/xl-docx-exporter@1700

@blocknote/xl-multi-column

npm i https://pkg.pr.new/@blocknote/xl-multi-column@1700

@blocknote/xl-odt-exporter

npm i https://pkg.pr.new/@blocknote/xl-odt-exporter@1700

@blocknote/xl-pdf-exporter

npm i https://pkg.pr.new/@blocknote/xl-pdf-exporter@1700

commit: 4bc7cc4

@YousefED
Copy link
Collaborator

@matthewlipski this was removed intentionally here; #1629

@matthewlipski matthewlipski changed the title fix: Re-added display: flex to block content fix: Basic block styling May 20, 2025
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current spacing looks off, could we get it back to how it was before this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like there is something with the bullet list spacing to be doing this:
image
(where the cursor is right up to the bullet)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like display: inline is just a nightmare. The empty list item cursor is browser-specific, and the PW snapshot has an additional space between the inline elements that you can't remove without some hacks. I'll see if I can get the selection working with flexbox.

Comment on lines -217 to -223
.bn-block-content[data-text-alignment="center"] {
justify-content: center;
}

.bn-block-content[data-text-alignment="right"] {
justify-content: flex-end;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image alignment broken in latest update
3 participants