Skip to content

fix: improve toolbar responsiveness#2761

Open
artem-harbour wants to merge 1 commit intomainfrom
artem/SD-2328
Open

fix: improve toolbar responsiveness#2761
artem-harbour wants to merge 1 commit intomainfrom
artem/SD-2328

Conversation

@artem-harbour
Copy link
Copy Markdown
Contributor

@artem-harbour artem-harbour commented Apr 9, 2026

Linear: SD-2328

Improved responsiveness behavior relative to the container.

@artem-harbour artem-harbour self-assigned this Apr 9, 2026
@linear
Copy link
Copy Markdown

linear bot commented Apr 9, 2026

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3f42cfbffe

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/super-editor/src/editors/v1/components/toolbar/Toolbar.vue
@artem-harbour artem-harbour force-pushed the artem/SD-2328 branch 2 times, most recently from 2347225 to 902a38a Compare April 14, 2026 10:26
@artem-harbour
Copy link
Copy Markdown
Contributor Author

@caio-pizzol @harbournick - please review and merge.

Copy link
Copy Markdown
Contributor

@caio-pizzol caio-pizzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@artem-harbour good direction on moving from CSS media queries to JS-driven compaction.

one blocking issue: the toolbar only recomputes on browser resize, not container resize — so side panels / layout changes leave it stale. reproduced: "Editing" button 387px outside the container. ResizeObserver fixes it.

also: the side-group check and the button-hiding check use different width sources, so they disagree under the default config. and the ticket asks for a regression test at the reproduction width — none added yet. left inline comments.

Comment thread packages/super-editor/src/editors/v1/components/toolbar/Toolbar.vue
Comment thread packages/super-editor/src/editors/v1/components/toolbar/Toolbar.vue Outdated
Comment thread packages/super-editor/src/editors/v1/components/toolbar/defaultItems.js Outdated
Comment thread packages/superdoc/src/dev/components/SuperdocDev.vue
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.

2 participants