mirror of
https://github.com/arikchakma/maily.to.git
synced 2026-04-26 06:35:53 +03:00
[PR #214] [MERGED] fix: dropdown and popover positioning #451
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#451
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/214
Author: @arikchakma
Created: 8/3/2025
Status: ✅ Merged
Merged: 8/3/2025
Merged by: @arikchakma
Base:
main← Head:fix/safari-dropdown📝 Commits (2)
9c73f32fix: component without portal1d09271chore: scroll threshold📊 Changes
3 files changed (+48 additions, -24 deletions)
View changed files
📝
packages/core/src/editor/components/popover.tsx(+29 -19)📝
packages/core/src/editor/components/ui/dropdown-menu.tsx(+13 -5)📝
packages/core/src/editor/index.tsx(+6 -0)📄 Description
This pull request introduces enhancements to the
PopoverandDropdownMenucomponents by adding aportalprop for more flexible rendering, and updates theEditorcomponent to support scroll-related customization. These changes improve the flexibility and configurability of the components.Enhancements to
PopoverandDropdownMenuComponents:PopoverContentComponent: Added aportalprop to conditionally wrap the content in aPopoverPrimitive.Portal. This allows developers to control whether the content is rendered inside a portal. [1] [2]DropdownMenuContentComponent: Similarly, introduced aportalprop to conditionally wrap the content in aDropdownMenuPrimitive.Portal, providing the same flexibility as thePopoverContentcomponent. [1] [2]Updates to the
EditorComponent:scrollThresholdandscrollMarginprops to theEditorPropstype, allowing developers to customize the scroll behavior of the editor.scrollThresholdandscrollMarginto40in theEditorcomponent's props destructuring.useEditor: Passed the newscrollThresholdandscrollMarginprops to theeditorPropsconfiguration in theuseEditorhook.Resolves #207
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.