Fix bubble menu positioning when scrolling
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -66,7 +66,7 @@ const extensions = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const richEditorVariants = tv({
|
const richEditorVariants = tv({
|
||||||
base: ["h-full pl-14"],
|
base: ["relative h-full pl-14"],
|
||||||
});
|
});
|
||||||
|
|
||||||
type RichEditorProps = ComponentProps<"div"> & {
|
type RichEditorProps = ComponentProps<"div"> & {
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ export function TableCellMenuTrigger({
|
|||||||
} = useFloating({
|
} = useFloating({
|
||||||
strategy: "fixed",
|
strategy: "fixed",
|
||||||
placement: "right",
|
placement: "right",
|
||||||
middleware: [offset(-10)],
|
middleware: [offset(-11)],
|
||||||
whileElementsMounted: (ref, floating, update) =>
|
whileElementsMounted: (ref, floating, update) =>
|
||||||
autoUpdate(ref, floating, update, { animationFrame: true }),
|
autoUpdate(ref, floating, update, { animationFrame: true }),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user