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({
|
||||
base: ["h-full pl-14"],
|
||||
base: ["relative h-full pl-14"],
|
||||
});
|
||||
|
||||
type RichEditorProps = ComponentProps<"div"> & {
|
||||
|
||||
@@ -49,7 +49,7 @@ export function TableCellMenuTrigger({
|
||||
} = useFloating({
|
||||
strategy: "fixed",
|
||||
placement: "right",
|
||||
middleware: [offset(-10)],
|
||||
middleware: [offset(-11)],
|
||||
whileElementsMounted: (ref, floating, update) =>
|
||||
autoUpdate(ref, floating, update, { animationFrame: true }),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user