Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: fixing issue with tooltip overlapping menu item

Ilian Sapundshievd540f46ea79d
diff --git a/app/components/HelperComponents.tsx b/app/components/HelperComponents.tsx
index 366f5d968..db91ad01d 100644
--- a/app/components/HelperComponents.tsx
+++ b/app/components/HelperComponents.tsx
@@ -74,13 +74,18 @@ export function ProSign() {
}
export function ProTooltip(props) {
- const { tooltip } = props;
+ const { tooltip, placement } = props;
const proTooltip = tooltip && tooltip;
+ const tooltipPlacement = placement || 'top';
const noProTooltip = tooltip
? tooltip + ' - ' + i18n.t('thisFunctionalityIsAvailableInPro')
: i18n.t('thisFunctionalityIsAvailableInPro');
return (
- <Tooltip arrow placement="top" title={Pro ? proTooltip : noProTooltip}>
+ <Tooltip
+ arrow
+ placement={tooltipPlacement}
+ title={Pro ? proTooltip : noProTooltip}
+ >
<span {...props} />
</Tooltip>
);
diff --git a/app/components/menus/TagLibraryMenu.tsx b/app/components/menus/TagLibraryMenu.tsx
index cb3990ecd..23c9cdcd8 100644
--- a/app/components/menus/TagLibraryMenu.tsx
+++ b/app/components/menus/TagLibraryMenu.tsx
@@ -136,7 +136,10 @@ function TagLibraryMenu(props: Props) {
</ListItemIcon>
<ListItemText primary={i18n.t('core:createTagGroupTitle')} />
</MenuItem>
- <ProTooltip tooltip={i18n.t('core:enableTagsFromLocationHelp')}>
+ <ProTooltip
+ placement="right"
+ tooltip={i18n.t('core:enableTagsFromLocationHelp')}
+ >
<MenuItem
disabled={!Pro || !props.saveTagInLocation}
data-tid="refreshTagGroups"