Skip to content

[New Rich Text Editor]: Dynamically calculate desktop's toolbar width breakpoints #5258

@habibayman

Description

@habibayman

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions