mirror of
https://github.com/arikchakma/maily.to.git
synced 2026-04-26 14:45:57 +03:00
[PR #157] [MERGED] feat: support locking image aspect ratio #193
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/maily.to#193
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/arikchakma/maily.to/pull/157
Author: @focux
Created: 3/13/2025
Status: ✅ Merged
Merged: 3/15/2025
Merged by: @arikchakma
Base:
main← Head:support-aspect-ratio📝 Commits (3)
27dc0d1feat: support locking image aspect ratio1ba0a46Merge branch 'main' into pr/15706fa0d6refactor: aspect ratio sizing📊 Changes
7 files changed (+173 additions, -12 deletions)
View changed files
📝
apps/web/components/template-sidebar.tsx(+1 -1)📝
packages/core/src/editor/components/image-menu/image-bubble-menu.tsx(+53 -6)➕
packages/core/src/editor/components/image-menu/lock-aspect-ratio-button.tsx(+36 -0)📝
packages/core/src/editor/components/image-menu/use-image-state.tsx(+3 -0)📝
packages/core/src/editor/nodes/image/image-view.tsx(+16 -5)📝
packages/core/src/editor/nodes/image/image.ts(+32 -0)➕
packages/core/src/editor/utils/aspect-ratio.ts(+32 -0)📄 Description
This PR adds support for locking image aspect ratio, closes #153
Video:
https://github.com/user-attachments/assets/366b3b9c-65ed-4964-a305-5e0d556d3674
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
columnspacing bug #298