From 271b4c6daf462419bce2aff6c51545192d4d55c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=B1=E9=A2=A8=E8=B0=B7=E3=82=AA=E3=83=BC=E3=82=B7?= =?UTF-8?q?=E3=83=A3=E3=83=B3?= Date: Wed, 13 Mar 2024 22:47:41 +0900 Subject: [PATCH] fix: cleanup unused popover modifier --- views/utils/tools.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/views/utils/tools.ts b/views/utils/tools.ts index 961819f0c..0bc4e63ee 100644 --- a/views/utils/tools.ts +++ b/views/utils/tools.ts @@ -24,7 +24,7 @@ import pangu from 'pangu' import path from 'path' import { readJsonSync } from 'fs-extra' import url from 'url' -import { Modifiers } from 'popper.js' +import { PopoverProps } from '@blueprintjs/core' /** * 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 => { /** * Default blueprint popover(Popper.js) modifiers used in poi */ -export const POPOVER_MODIFIERS: Modifiers = { - computeStyle: { gpuAcceleration: false }, // prevent using translat3d since it could make text blurry with zooming - preventOverflow: { - boundariesElement: 'window', // enable display tooltip within small containers - }, -} +export const POPOVER_MODIFIERS: PopoverProps['modifiers'] = {} export const cjkSpacing = (str: string) => (isString(str) ? pangu.spacing(str) : toString(str))