Skip to content

fix: hide image resize handles in view mode#2576

Merged
caio-pizzol merged 5 commits intomainfrom
sd-2323_hide-image-resize-view-mode
Mar 30, 2026
Merged

fix: hide image resize handles in view mode#2576
caio-pizzol merged 5 commits intomainfrom
sd-2323_hide-image-resize-view-mode

Conversation

@VladaHarbour
Copy link
Copy Markdown
Contributor

No description provided.

@VladaHarbour VladaHarbour self-assigned this Mar 26, 2026
@linear
Copy link
Copy Markdown

linear Bot commented Mar 26, 2026

@VladaHarbour VladaHarbour force-pushed the sd-2323_hide-image-resize-view-mode branch from d8efe78 to 409269e Compare March 26, 2026 15:32
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.

@VladaHarbour looks good! tested in the dev app and the fix works — no resize handles or selection in viewing mode.

one small thing: the click handler hides the table overlay but forgets the image overlay, so stale handles can linger after a mode switch. left an inline comment.

pushed a commit with behavior tests (Word-native fixture + 3 Playwright tests).

Comment thread packages/super-editor/src/components/SuperEditor.vue Outdated
@VladaHarbour VladaHarbour force-pushed the sd-2323_hide-image-resize-view-mode branch from 21f6e2d to d809f4e Compare March 30, 2026 15:20
VladaHarbour and others added 3 commits March 30, 2026 18:23
Word-native test document with embedded image and three Playwright
behavior tests: overlay hidden on hover in viewing mode, selection
outline blocked on click in viewing mode, and overlay still works
in editing mode (sanity check).
@VladaHarbour VladaHarbour force-pushed the sd-2323_hide-image-resize-view-mode branch from d809f4e to fcdef97 Compare March 30, 2026 15:23
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.

@VladaHarbour looks good - the proactive cleanup on mode switch is a nice improvement over the first version.

pushed two small commits: fixed a missing field in the mode change event, and added unit tests for the resize overlay guard.

approving

@caio-pizzol caio-pizzol force-pushed the sd-2323_hide-image-resize-view-mode branch from bbac09a to 682e5d9 Compare March 30, 2026 17:55
- PresentationEditor now emits { editor, documentMode } matching
  the DocumentModeChangePayload type contract
- Add ImageResizeOverlay unit tests for the isResizeDisabled guard
  (viewing mode, non-editable, and editing mode sanity check)
@caio-pizzol caio-pizzol force-pushed the sd-2323_hide-image-resize-view-mode branch from 682e5d9 to 1fcdce8 Compare March 30, 2026 18:01
@caio-pizzol caio-pizzol merged commit 9f4d7db into main Mar 30, 2026
49 checks passed
@caio-pizzol caio-pizzol deleted the sd-2323_hide-image-resize-view-mode branch March 30, 2026 20:57
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 30, 2026

🎉 This PR is included in esign v2.2.0-next.5

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 30, 2026

🎉 This PR is included in vscode-ext v1.1.0-next.48

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 30, 2026

🎉 This PR is included in template-builder v1.3.0-next.4

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 30, 2026

🎉 This PR is included in superdoc v1.24.0-next.45

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 30, 2026

🎉 This PR is included in superdoc-cli v0.5.0-next.45

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 30, 2026

🎉 This PR is included in superdoc-sdk v1.3.0-next.45

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 30, 2026

🎉 This PR is included in superdoc v1.24.1

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 30, 2026

🎉 This PR is included in superdoc-cli v0.5.0

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 2, 2026

🎉 This PR is included in superdoc-sdk v1.3.0

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 2, 2026

🎉 This PR is included in vscode-ext v2.2.0

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