Skip to content

Commit

Permalink
Fixed missing mobile tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
anderson-oki committed Dec 9, 2024
1 parent f4ca0f9 commit 137d619
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion frontend/src/components/TextPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
Expand Down
7 changes: 6 additions & 1 deletion frontend/src/components/bazarr/HistoryIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/views/ItemOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 137d619

Please sign in to comment.