Skip to content

fix: prevent scrollbars in inline toolbar on Safari#2990

Open
pierreeurope wants to merge 1 commit intocodex-team:nextfrom
pierreeurope:fix/inline-toolbar-safari-scrollbar
Open

fix: prevent scrollbars in inline toolbar on Safari#2990
pierreeurope wants to merge 1 commit intocodex-team:nextfrom
pierreeurope:fix/inline-toolbar-safari-scrollbar

Conversation

@pierreeurope
Copy link

Fixes #2988

The inline toolbar shows scrollbars in Safari because .ce-popover__items inherits overflow-y: auto from popover.css. Safari renders the scroll control even when the content fits in the container, partially covering toolbar items.

Adding overflow: hidden to the .ce-popover__items selector inside .ce-popover--inline prevents this. The flex layout already handles all item placement so scrolling isn't needed here.

One line change to src/styles/popover-inline.css.

The inline popover items container inherits overflow-y: auto from
popover.css. In Safari, this causes scrollbars to appear in the
inline toolbar when selecting text, partially covering toolbar items.

Adding overflow: hidden to the ce-popover__items selector inside
ce-popover--inline prevents the browser from rendering scroll controls
since the flex layout handles all item positioning.
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.

Bug: Popover inline toolbar shows scrollbars in Safari

2 participants

Comments