Skip to content

Commit 56c34de

Browse files
NickLanamcopybaranaut
authored andcommitted
[PC-1502]: Fix tooltip in Chrome
Summary: Oops. Test Plan: `/admin/plugins`, hover the description of a plugin with one that overflows the container. Do the same in both Chrome and Firefox. Reviewers: michelle, vihang Reviewed By: michelle JIRA Issues: PC-1502 Signed-off-by: Nick Lanam <nlanam@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11240 GitOrigin-RevId: 58627d6
1 parent 8ac1562 commit 56c34de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui/src/containers/admin/plugins/plugins-overview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const OverflowTooltip: React.FC<{ title: string }> = React.memo(({ title, childr
106106
const spanRef = React.useCallback((el) => setSpan(el), []);
107107

108108
const updateOverflow = React.useCallback(() => {
109-
setOverflow(span?.scrollWidth > span?.parentElement.clientWidth);
109+
setOverflow(span?.parentElement.scrollWidth > span?.parentElement.clientWidth);
110110
}, [span]);
111111

112112
return (

0 commit comments

Comments
 (0)