Skip to content
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

feat(Rich Text Editor): add sticky offset property #1782

Conversation

cf-remylenoir
Copy link
Contributor

@cf-remylenoir cf-remylenoir commented Oct 17, 2024

Having the sticky entity editor tabs in the web app requires having a customizable offset for the Rich Text Editor sticky toolbar to ensure it stays visible when scrolling and not hidden behind the tabs.

Before

The toolbar is sticky behind the tabs.

before.mov

After

Adding the offset value matching the tabs' height ensures the toolbar stays visible.

after.mov

@cf-remylenoir cf-remylenoir self-assigned this Oct 17, 2024
@cf-remylenoir cf-remylenoir marked this pull request as ready for review October 17, 2024 08:52
@cf-remylenoir cf-remylenoir requested a review from a team as a code owner October 17, 2024 08:52
@cf-remylenoir cf-remylenoir merged commit 0a395e2 into master Oct 17, 2024
12 checks passed
@cf-remylenoir cf-remylenoir deleted the CFISO-1962-markdown-rich-text-editors-overlap-with-the-sticky-entity-tabs branch October 17, 2024 09:19
@DanweDE
Copy link
Contributor

DanweDE commented Oct 17, 2024

@cf-remylenoir Nit, but to my eyes it feels like we're off by one pixel as we have both horizontal lines on top now 🤔
image

@cf-remylenoir
Copy link
Contributor Author

cf-remylenoir commented Oct 17, 2024

Yes, the offset value is set in the web app. I will bring it 1px less in my upcoming PR (the video reflects a WIP state) 🙂

@cf-remylenoir Nit, but to my eyes it feels like we're off by one pixel as we have both horizontal lines on top now 🤔 image

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

Successfully merging this pull request may close these issues.

3 participants