Skip to content

Conversation

@LoopyDev
Copy link

@LoopyDev LoopyDev commented Nov 29, 2025

Well, hello there! I'm on a bit of a sprint to make a nice wiki app, because nobody wants to use mediawiki 😅

ezgif com-video-to-webp-converter

Anyways, here's the PR:

Summary

Added draggable resize handle to the Image tool; width is stored in block data and reapplied on load.
Clamped resize to a minimum of 40px and to the parent container width to prevent overflow.
Preserves width in saved image data alongside file URL, caption, and tunes.
Handle shrinks to fit small images.

Details

UI: right-edge handle appears on hover; dragging updates inline width and saved width field.
Data: width?: number added to the image block schema and serialization; existing data remains compatible.
Behaviour: width resets to auto when unset; read-only hides the handle.

Testing

Insert image, upload/paste URL.
Drag handle to resize; save/reload and verify width persists.
Confirm min/max clamp (can’t exceed container), handle shrinks with small images, captions/tunes still work, and read-only has no handle.

Notes

No dependency changes; lockfiles unchanged.

@LoopyDev LoopyDev force-pushed the master branch 2 times, most recently from bfa46c9 to 539b1c9 Compare November 29, 2025 02:08
@LoopyDev
Copy link
Author

@neSpecc I see you're a 'vibecode reviewer'...maybe you can review my vibecode? I even cleaned up the lockfiles for you! 😄

@LoopyDev LoopyDev changed the title Resize handles Resize handle Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant