Skip to content

(frontend) fix callout block navigation issues & styles #1161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ZouicheOmar
Copy link
Contributor

Purpose

This PR addresses issue #892.
Using the callout block can provoque cursor issues when using arrow for text navigation.
The cursor gets unexpected positions. This happens when the callout block is the first of
the document and the users tries to go up, and on all directions when the cursor is
between consecutive callout blocks.
This PR also updates minor styles for the callout block.

Proposal

  • 💄(frontend) update callout styles
  • 🐛(frontend) fix callout block arrow navigation

Updated the callout block styles, centered the emoji and aligned the
text to be in the center of the block.

Signed-off-by: ZouicheOmar <[email protected]>
Fixed the behavior of arrow navigation around and between callout
blocks.
When navigating backwards (arrow up or left) from a callout
that is either document's first block or comes right after a callout,
the cursor doesn't go into a text selection, which it should. Similar
behavior if when going forward. This bug is trigged by any of the four
arrow keys.
Added a command to set the cursor position as it is expected.

Signed-off-by: ZouicheOmar <[email protected]>
@ZouicheOmar ZouicheOmar marked this pull request as draft July 10, 2025 14:09
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.

1 participant