-
-
Notifications
You must be signed in to change notification settings - Fork 631
fix: Emoji picker issues #2092
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Emoji picker issues #2092
Changes from all commits
786e357
a71f278
b323294
81db812
d7fa0c7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,3 +40,8 @@ | |
| line-height: 12px; | ||
| padding-left: 14px; | ||
| } | ||
|
|
||
| .bn-thread { | ||
| max-height: 200px; | ||
| overflow: auto !important; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,13 @@ export const Popover = ( | |
| assertEmpty(rest); | ||
|
|
||
| return ( | ||
| <MantinePopover withinPortal={false} opened={opened} position={position}> | ||
| <MantinePopover | ||
| middlewares={{ size: { padding: 20 } }} | ||
| withinPortal={false} | ||
| opened={opened} | ||
| position={position} | ||
| zIndex={10000} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I prefer more reasonable values for z-index, but I've not seen what this is compared to
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Each of the UI elements is a multiple of 1000 (1000 for side menu, 3000 for formatting toolbar, etc), so this is continuing that pattern. |
||
| > | ||
| {children} | ||
| </MantinePopover> | ||
| ); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matthewlipski only seeing this now, but can't we use
withinPortalinstead of using our owncreatePortal?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically yes, functionally it is the same. However, since we only use a portal for the emoji picker, and neither Ariakit nor ShadCN have popover options to render in a portal, I decided to go with this approach as it's less code and easier to maintain.