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.

fix(ui): hover card z-index (#3399)

Fake-Usere2208bb2bf84
diff --git a/js/app/packages/app/index.css b/js/app/packages/app/index.css
index 65bcdd1341..62239c008e 100644
--- a/js/app/packages/app/index.css
+++ b/js/app/packages/app/index.css
@@ -183,6 +183,11 @@
--animate-slide-in: slideIn 150ms cubic-bezier(0.16, 1, 0.3, 1);
--animate-typing-dot: typing-dot 1s infinite;
--animate-swipe-out: swipeOut 100ms ease-out;
+
+ --z-index-modal-overlay: 100;
+ --z-index-modal: 110;
+ --z-index-modal-content: 120;
+ --z-index-tool-tip: 200;
}
/* scuffed: might wan to use signals for this */
diff --git a/js/app/packages/core/component/HoverCard.tsx b/js/app/packages/core/component/HoverCard.tsx
index 2e0c1d5765..84c40ec6bb 100644
--- a/js/app/packages/core/component/HoverCard.tsx
+++ b/js/app/packages/core/component/HoverCard.tsx
@@ -2,6 +2,7 @@ import {
type HoverCardRootProps,
HoverCard as KobalteHoverCard,
} from '@kobalte/core/hover-card';
+import { cn } from '@ui';
import type { JSX, Setter } from 'solid-js';
import {
createContext,
@@ -173,7 +174,7 @@ export function HoverCard(props: HoverCardComponentProps) {
ref={(el) => {
contentEl = el;
}}
- class={props.contentClass}
+ class={cn('z-tool-tip', props.contentClass)}
>
<HoverCardPortalNestedPreviewOpenContext.Provider
value={{ count: nestedOpenCount, setCount: setNestedOpenCount }}