File tree 1 file changed +18
-3
lines changed
site/src/components/Resources 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change
1
+ import { Popover } from "@material-ui/core"
1
2
import CircularProgress from "@material-ui/core/CircularProgress"
2
3
import makeStyles from "@material-ui/core/styles/makeStyles"
3
4
import { watchAgentMetadata } from "api/api"
@@ -72,11 +73,25 @@ const MetadataItem: FC<{ item: WorkspaceAgentMetadata }> = ({ item }) => {
72
73
role = "presentation"
73
74
ref = { anchorRef }
74
75
>
75
- < HelpPopover
76
+ < Popover
77
+ anchorOrigin = { {
78
+ vertical : "bottom" ,
79
+ horizontal : "left" ,
80
+ } }
81
+ transformOrigin = { {
82
+ vertical : "top" ,
83
+ horizontal : "left" ,
84
+ } }
76
85
open = { isOpen }
77
86
anchorEl = { anchorRef . current }
78
- onOpen = { ( ) => setIsOpen ( true ) }
79
87
onClose = { ( ) => setIsOpen ( false ) }
88
+ PaperProps = { {
89
+ onMouseEnter : ( ) => setIsOpen ( true ) ,
90
+ // onMouseLeave: () => setIsOpen(false),
91
+ } }
92
+ style = { {
93
+ width : "auto" ,
94
+ } }
80
95
>
81
96
< HelpTooltipTitle > { item . description . display_name } </ HelpTooltipTitle >
82
97
< HelpTooltipText >
@@ -97,7 +112,7 @@ const MetadataItem: FC<{ item: WorkspaceAgentMetadata }> = ({ item }) => {
97
112
This item is collected by running the following command:
98
113
< CodeExample code = { item . description . script } > </ CodeExample >
99
114
</ HelpTooltipText >
100
- </ HelpPopover >
115
+ </ Popover >
101
116
< div className = { styles . metadataLabel } >
102
117
{ item . description . display_name }
103
118
</ div >
You can’t perform that action at this time.
0 commit comments