Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

style(md): update actions and emoji menu wrapper styles (#1645)

Seamus5e5e49f1f537
diff --git a/js/app/packages/core/component/LexicalMarkdown/component/menu/ActionsMenu.tsx b/js/app/packages/core/component/LexicalMarkdown/component/menu/ActionsMenu.tsx
index 3bfc1874c8..38110c4bc7 100644
--- a/js/app/packages/core/component/LexicalMarkdown/component/menu/ActionsMenu.tsx
+++ b/js/app/packages/core/component/LexicalMarkdown/component/menu/ActionsMenu.tsx
@@ -1,4 +1,4 @@
-import { BozzyBracketInnerSibling } from '@core/component/BozzyBracket';
+import { ClippedPanel } from '@core/component/ClippedPanel';
import { type PortalScope, ScopedPortal } from '@core/component/ScopedPortal';
import clickOutside from '@core/directive/clickOutside';
import { isMobileWidth } from '@core/mobile/mobileWidth';
@@ -278,7 +278,7 @@ export function ActionMenu(props: {
use:clickOutside={clickOutsideHandler}
ref={menuRef}
>
- <div class="relative overflow-hidden ring-1 ring-edge bg-menu shadow-xl py-2">
+ <ClippedPanel active tl class="py-2">
<div
class="overflow-y-auto scrollbar-hidden"
style={{
@@ -290,8 +290,7 @@ export function ActionMenu(props: {
>
{inner()}
</div>
- </div>
- <BozzyBracketInnerSibling animOnOpen={true} />
+ </ClippedPanel>
</div>
</ScopedPortal>
</Show>
diff --git a/js/app/packages/core/component/LexicalMarkdown/component/menu/EmojiMenu.tsx b/js/app/packages/core/component/LexicalMarkdown/component/menu/EmojiMenu.tsx
index 9d48a17ff5..f9b3a86a6f 100644
--- a/js/app/packages/core/component/LexicalMarkdown/component/menu/EmojiMenu.tsx
+++ b/js/app/packages/core/component/LexicalMarkdown/component/menu/EmojiMenu.tsx
@@ -1,4 +1,4 @@
-import { BozzyBracketInnerSibling } from '@core/component/BozzyBracket';
+import { ClippedPanel } from '@core/component/ClippedPanel';
import { resolveEmoji, useEmojiData } from '@core/component/Emoji/emojis';
import { type PortalScope, ScopedPortal } from '@core/component/ScopedPortal';
import clickOutside from '@core/directive/clickOutside';
@@ -226,8 +226,8 @@ export function EmojiMenu(props: EmojiMenuProps) {
}}
ref={menuRef}
>
- <div class="relative overflow-hidden ring-1 ring-edge bg-menu shadow-xl py-2">
- <div class="flex flex-col gap-1 pl-1 w-full">
+ <ClippedPanel active tl class="py-2">
+ <div class="flex flex-col gap-1 px-2 w-full">
<Show
when={emojiOptions().length > 0}
fallback={
@@ -237,6 +237,7 @@ export function EmojiMenu(props: EmojiMenuProps) {
<VList
data={emojiOptions()}
ref={setVirtualHandle}
+ class="scrollbar-hidden"
style={{
height:
contentMaxHeight() !== undefined
@@ -263,8 +264,7 @@ export function EmojiMenu(props: EmojiMenuProps) {
</VList>
</Show>
</div>
- </div>
- <BozzyBracketInnerSibling animOnOpen={true} />
+ </ClippedPanel>
</div>
</ScopedPortal>
</Show>