fix(web): keep the slash menu above the composer when vertical space is short (#9625)
This commit is contained in:
1 parent
8357eef14c
commit
120fab18d8
2 files changed
+3
-3
No files matched your search
@@ -758,7 +758,7 @@ function ComposerCommandMenuLayer(props: { anchor: HTMLElement | null; children:
|
||||
|
||||
return createPortal(
|
||||
<div
|
||||
className="pointer-events-auto fixed z-40"
|
||||
className="pointer-events-auto fixed z-40 flex flex-col"
|
||||
data-composer-drawer-layer="true"
|
||||
style={{
|
||||
bottom: position.bottom,
|
||||
|
||||
@@ -91,11 +91,11 @@ export const ComposerCommandMenu = memo(function ComposerCommandMenu(props: {
|
||||
>
|
||||
<ComposerBanner.Surface
|
||||
ref={listRef}
|
||||
className="w-full overflow-hidden pb-(--chat-composer-attachment-overlap) **:data-[slot=scroll-area-scrollbar]:data-[orientation=vertical]:my-4"
|
||||
className="flex min-h-0 w-full flex-col overflow-hidden pb-(--chat-composer-attachment-overlap) **:data-[slot=scroll-area-scrollbar]:data-[orientation=vertical]:my-4"
|
||||
data-composer-command-drawer="true"
|
||||
>
|
||||
{props.items.length > 0 ? (
|
||||
<CommandList className="max-h-72 scroll-pb-6">
|
||||
<CommandList className="max-h-72 min-h-0 scroll-pb-6">
|
||||
<CommandGroup>
|
||||
{props.items.map((item) => (
|
||||
<ComposerCommandMenuItem
|
||||
|
||||
Reference in new issue
Block a user