You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Desired behavior
A follow up issue opened after the discussion in this comment in PR #5220
To instead of having the breakpoints to folding the toolbar menu items hard coded based on calculations and trial & errors, have them dynamically calculated .
Current behavior
The breakpoints currently exist as a hard coded array. Working Just fine 👍🏻 but the code can use an enhancement.
toolbar-overflow.webm
Value add
Will make it easier if we decided to add/remove any buttons.
changed the title [-][New Rich Text Editor]: Dynamically calculate the desktop's toolbar breakpoints[/-][+][New Rich Text Editor]: Dynamically calculate desktop's toolbar width breakpoints[/+]on Aug 6, 2025
For use-cases like this, breakpoint based approaches, whether hardcoded or dynamic, will always be a bit cumbersome. It may be best to just detect space available in the toolbar. KListWithOverflow may be handy here.
Activity
[-][New Rich Text Editor]: Dynamically calculate the desktop's toolbar breakpoints[/-][+][New Rich Text Editor]: Dynamically calculate desktop's toolbar width breakpoints[/+]MisRob commentedon Aug 11, 2025
For use-cases like this, breakpoint based approaches, whether hardcoded or dynamic, will always be a bit cumbersome. It may be best to just detect space available in the toolbar.
KListWithOverflowmay be handy here.Replace hardcoded toolbar breakpoints with KListWithOverflow
Replace hardcoded toolbar breakpoints with KListWithOverflow
[-][New Rich Text Editor]: Dynamically calculate desktop's toolbar width breakpoints[/-][+][RTE] Dynamically calculate desktop's toolbar width breakpoints[/+]Replace hardcoded toolbar breakpoints with KListWithOverflow
Replace hardcoded toolbar breakpoints with KListWithOverflow
Replace hardcoded toolbar breakpoints with KListWithOverflow