mirror of
https://github.com/docmost/docmost.git
synced 2026-08-30 10:26:25 +08:00
add tippyoptions for reference
This commit is contained in:
@@ -82,6 +82,14 @@ export function CalloutMenu({ editor }: EditorMenuProps) {
|
|||||||
// zIndex: 99,
|
// zIndex: 99,
|
||||||
flip: false,
|
flip: false,
|
||||||
}}
|
}}
|
||||||
|
//tippyOptions={{
|
||||||
|
// getReferenceClientRect,
|
||||||
|
// offset: [0, 10],
|
||||||
|
// placement: "bottom",
|
||||||
|
// zIndex: 99,
|
||||||
|
// popperOptions: {
|
||||||
|
// modifiers: [{ name: "flip", enabled: false }],
|
||||||
|
// },
|
||||||
shouldShow={shouldShow}
|
shouldShow={shouldShow}
|
||||||
>
|
>
|
||||||
<ActionIcon.Group className="actionIconGroup">
|
<ActionIcon.Group className="actionIconGroup">
|
||||||
|
|||||||
@@ -52,6 +52,15 @@ export function DrawioMenu({ editor }: EditorMenuProps) {
|
|||||||
// zIndex: 99,
|
// zIndex: 99,
|
||||||
flip: false,
|
flip: false,
|
||||||
}}
|
}}
|
||||||
|
// tippyOptions={{
|
||||||
|
// getReferenceClientRect,
|
||||||
|
// offset: [0, 8],
|
||||||
|
// zIndex: 99,
|
||||||
|
// popperOptions: {
|
||||||
|
// modifiers: [{ name: 'flip', enabled: false }],
|
||||||
|
// },
|
||||||
|
// plugins: [sticky],
|
||||||
|
// sticky: 'popper',
|
||||||
shouldShow={shouldShow}
|
shouldShow={shouldShow}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -52,8 +52,20 @@ export function ExcalidrawMenu({ editor }: EditorMenuProps) {
|
|||||||
placement: "bottom",
|
placement: "bottom",
|
||||||
offset: 8,
|
offset: 8,
|
||||||
// zIndex: 99,
|
// zIndex: 99,
|
||||||
|
// plugins: [sticky],
|
||||||
|
// sticky: 'popper',
|
||||||
flip: false,
|
flip: false,
|
||||||
}}
|
}}
|
||||||
|
// tippyOptions={{
|
||||||
|
// getReferenceClientRect,
|
||||||
|
// offset: [0, 8],
|
||||||
|
// zIndex: 99,
|
||||||
|
// popperOptions: {
|
||||||
|
// modifiers: [{ name: 'flip', enabled: false }],
|
||||||
|
// },
|
||||||
|
// plugins: [sticky],
|
||||||
|
// sticky: 'popper',
|
||||||
|
// }}
|
||||||
shouldShow={shouldShow}
|
shouldShow={shouldShow}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -108,6 +108,16 @@ export function ImageMenu({ editor }: EditorMenuProps) {
|
|||||||
//zIndex: 99,
|
//zIndex: 99,
|
||||||
flip: false,
|
flip: false,
|
||||||
}}
|
}}
|
||||||
|
// tippyOptions={{
|
||||||
|
// getReferenceClientRect,
|
||||||
|
// offset: [0, 8],
|
||||||
|
// zIndex: 99,
|
||||||
|
// popperOptions: {
|
||||||
|
// modifiers: [{ name: "flip", enabled: false }],
|
||||||
|
// },
|
||||||
|
// plugins: [sticky],
|
||||||
|
// sticky: "popper",
|
||||||
|
// }}
|
||||||
shouldShow={shouldShow}
|
shouldShow={shouldShow}
|
||||||
>
|
>
|
||||||
<ActionIcon.Group className="actionIconGroup">
|
<ActionIcon.Group className="actionIconGroup">
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ export const TableCellMenu = React.memo(
|
|||||||
offset: 15,
|
offset: 15,
|
||||||
//zIndex: 99,
|
//zIndex: 99,
|
||||||
}}
|
}}
|
||||||
|
|
||||||
shouldShow={shouldShow}
|
shouldShow={shouldShow}
|
||||||
>
|
>
|
||||||
<ActionIcon.Group>
|
<ActionIcon.Group>
|
||||||
|
|||||||
@@ -95,6 +95,33 @@ export const TableMenu = React.memo(
|
|||||||
offset: 15,
|
offset: 15,
|
||||||
//zIndex: 99,
|
//zIndex: 99,
|
||||||
}}
|
}}
|
||||||
|
//tippyOptions={{
|
||||||
|
// getReferenceClientRect: getReferenceClientRect,
|
||||||
|
// offset: [0, 15],
|
||||||
|
// zIndex: 99,
|
||||||
|
// popperOptions: {
|
||||||
|
// modifiers: [
|
||||||
|
// {
|
||||||
|
// name: "preventOverflow",
|
||||||
|
// enabled: true,
|
||||||
|
// options: {
|
||||||
|
// altAxis: true,
|
||||||
|
// boundary: "clippingParents",
|
||||||
|
// padding: 8,
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// name: "flip",
|
||||||
|
// enabled: true,
|
||||||
|
// options: {
|
||||||
|
// boundary: editor.options.element,
|
||||||
|
// fallbackPlacements: ["top", "bottom"],
|
||||||
|
// padding: { top: 35, left: 8, right: 8, bottom: -Infinity },
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
|
// }}
|
||||||
shouldShow={shouldShow}
|
shouldShow={shouldShow}
|
||||||
>
|
>
|
||||||
<ActionIcon.Group>
|
<ActionIcon.Group>
|
||||||
|
|||||||
Reference in New Issue
Block a user