summaryrefslogtreecommitdiff
path: root/components/Tweaks
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-10-04 15:34:56 +0200
committerThomas F. K. Jorna <[email protected]>2021-10-04 15:34:56 +0200
commitb0ddf286f087b31dc75626f709cfce3889de25dd (patch)
tree480c65853ef0a8e2de44f567ec95e367fc634a04 /components/Tweaks
parent90820ca13a51b8a7e77d15896b0d34f9aba829fd (diff)
feat(preview): changed text-retrieval to http
Diffstat (limited to 'components/Tweaks')
-rw-r--r--components/Tweaks/BehaviorPanel.tsx20
1 files changed, 20 insertions, 0 deletions
diff --git a/components/Tweaks/BehaviorPanel.tsx b/components/Tweaks/BehaviorPanel.tsx
index 8edb986..0c22e1a 100644
--- a/components/Tweaks/BehaviorPanel.tsx
+++ b/components/Tweaks/BehaviorPanel.tsx
@@ -34,6 +34,26 @@ export const BehaviorPanel = (props: BehaviorPanelProps) => {
color="gray.800"
>
<Flex alignItems="center" justifyContent="space-between">
+ <Text>Preview node</Text>
+ <Menu isLazy placement="right">
+ <MenuButton as={Button} rightIcon={<ChevronDownIcon />} colorScheme="" color="black">
+ <Text>
+ {mouse.preview ? mouse.preview[0]!.toUpperCase() + mouse.preview!.slice(1) : 'Never'}
+ </Text>
+ </MenuButton>
+ <Portal>
+ {' '}
+ <MenuList bgColor="gray.200" zIndex="popover">
+ <MenuItem onClick={() => setMouse({ ...mouse, preview: '' })}>Never</MenuItem>
+ <MenuItem onClick={() => setMouse({ ...mouse, preview: 'click' })}>Click</MenuItem>
+ <MenuItem onClick={() => setMouse({ ...mouse, preview: 'double' })}>
+ Double Click
+ </MenuItem>
+ </MenuList>
+ </Portal>
+ </Menu>
+ </Flex>
+ <Flex alignItems="center" justifyContent="space-between">
<Flex>
<Text>Expand Node</Text>
<InfoTooltip infoText="View only the node and its direct neighbors" />