Skip to content

Commit b18441a

Browse files
committed
follow cursor added in cm/cs
1 parent d5064e4 commit b18441a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
"xterm-addon-search": "^0.9.0",
4949
"xterm-webfont": "^2.0.0",
5050
"yaml": "^1.7.2",
51-
"yamljs": "^0.3.0"
51+
"yamljs": "^0.3.0",
52+
"tippy.js": "^6.3.7"
5253
},
5354
"scripts": {
5455
"lint": "eslint src/**/*.tsx",

src/components/ConfigMapSecret/ConfigMapSecret.components.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import { getCMSecret, getConfigMapList, getSecretList } from './service'
3131
import { useHistory, useParams, useRouteMatch } from 'react-router-dom'
3232
import { toast } from 'react-toastify'
3333
import Tippy from '@tippyjs/react'
34+
import { followCursor } from 'tippy.js'
3435

3536
const ConfigToolbar = importComponentFromFELibrary('ConfigToolbar')
3637
const ApproveRequestTippy = importComponentFromFELibrary('ApproveRequestTippy')
@@ -382,6 +383,7 @@ export function ConfigMapSecretContainer({
382383
<Tippy
383384
theme={TippyTheme.black}
384385
followCursor={true}
386+
plugins= {[followCursor]}
385387
arrow={true}
386388
animation="shift-toward-subtle"
387389
placement='top'

0 commit comments

Comments
 (0)