Fixed missing mobile tooltips

This commit is contained in:
Anderson Shindy Oki 2024-12-09 09:06:38 +09:00
parent f4ca0f9e55
commit 137d61930d
3 changed files with 13 additions and 2 deletions

View file

@ -18,7 +18,12 @@ const TextPopover: FunctionComponent<TextPopoverProps> = ({
}
return (
<Tooltip label={text} {...tooltip} style={{ textWrap: "wrap" }}>
<Tooltip
label={text}
{...tooltip}
style={{ textWrap: "wrap" }}
events={{ hover: true, focus: false, touch: true }}
>
<div>{children}</div>
</Tooltip>
);

View file

@ -65,7 +65,12 @@ const HistoryIcon: FunctionComponent<{
if (icon) {
return (
<Tooltip label={label} openDelay={500} position="right">
<Tooltip
label={label}
openDelay={500}
position="right"
events={{ hover: true, focus: false, touch: true }}
>
<FontAwesomeIcon
aria-label={label}
title={title}

View file

@ -62,6 +62,7 @@ const ItemOverview: FunctionComponent<Props> = (props) => {
label={item.path}
multiline
style={{ overflowWrap: "anywhere" }}
events={{ hover: true, focus: false, touch: true }}
>
<span>{item.path}</span>
</Tooltip>