[PR #157] [MERGED] feat: support locking image aspect ratio #424

Closed
opened 2026-03-15 02:13:58 +03:00 by kerem · 0 comments
Owner

📋 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: mainHead: support-aspect-ratio


📝 Commits (3)

  • 27dc0d1 feat: support locking image aspect ratio
  • 1ba0a46 Merge branch 'main' into pr/157
  • 06fa0d6 refactor: 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.

## 📋 Pull Request Information **Original PR:** https://github.com/arikchakma/maily.to/pull/157 **Author:** [@focux](https://github.com/focux) **Created:** 3/13/2025 **Status:** ✅ Merged **Merged:** 3/15/2025 **Merged by:** [@arikchakma](https://github.com/arikchakma) **Base:** `main` ← **Head:** `support-aspect-ratio` --- ### 📝 Commits (3) - [`27dc0d1`](https://github.com/arikchakma/maily.to/commit/27dc0d18ef594df06f805ba092b71b020bb60785) feat: support locking image aspect ratio - [`1ba0a46`](https://github.com/arikchakma/maily.to/commit/1ba0a46256cb684b6e8c98f5dabea4cb8a66ec03) Merge branch 'main' into pr/157 - [`06fa0d6`](https://github.com/arikchakma/maily.to/commit/06fa0d60c8acab2b732e2b864b70b1a9805d0179) refactor: aspect ratio sizing ### 📊 Changes **7 files changed** (+173 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 Description This PR adds support for locking image aspect ratio, closes #153 **Video:** https://github.com/user-attachments/assets/366b3b9c-65ed-4964-a305-5e0d556d3674 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-15 02:13:58 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/maily.to#424
No description provided.