Skip to content

Commit 271b4c6

Browse files
committed
fix: cleanup unused popover modifier
1 parent 0201d6b commit 271b4c6

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

views/utils/tools.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import pangu from 'pangu'
2424
import path from 'path'
2525
import { readJsonSync } from 'fs-extra'
2626
import url from 'url'
27-
import { Modifiers } from 'popper.js'
27+
import { PopoverProps } from '@blueprintjs/core'
2828

2929
/**
3030
* Sums up each position for each position for a 2-dimension array (matrix)
@@ -367,11 +367,6 @@ export const loadScript = (path: string, document = window.document): void => {
367367
/**
368368
* Default blueprint popover(Popper.js) modifiers used in poi
369369
*/
370-
export const POPOVER_MODIFIERS: Modifiers = {
371-
computeStyle: { gpuAcceleration: false }, // prevent using translat3d since it could make text blurry with zooming
372-
preventOverflow: {
373-
boundariesElement: 'window', // enable display tooltip within small containers
374-
},
375-
}
370+
export const POPOVER_MODIFIERS: PopoverProps['modifiers'] = {}
376371

377372
export const cjkSpacing = (str: string) => (isString(str) ? pangu.spacing(str) : toString(str))

0 commit comments

Comments
 (0)