Skip to content

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

fix: issue with tooltips and main splitter

Ilian Sapundshievcb2ddce8d46b
diff --git a/app/components/InfoIcon.tsx b/app/components/InfoIcon.tsx
index 17f159b6f..3f2e58b3f 100644
--- a/app/components/InfoIcon.tsx
+++ b/app/components/InfoIcon.tsx
@@ -17,9 +17,8 @@
*/
import React from 'react';
-import IconButton from '@mui/material/IconButton';
import HelpIcon from '@mui/icons-material/InfoOutlined';
-import Tooltip from '@mui/material/Tooltip';
+import Tooltip from '-/components/Tooltip';
interface Props {
tooltip?: string;
@@ -28,10 +27,8 @@ interface Props {
function InfoIcon(props: Props) {
const { tooltip } = props;
return (
- <Tooltip arrow title={tooltip}>
- {/* <IconButton edge="end" aria-label="delete" size="large"> */}
+ <Tooltip title={tooltip}>
<HelpIcon />
- {/* </IconButton> */}
</Tooltip>
);
}
diff --git a/app/components/Tooltip.tsx b/app/components/Tooltip.tsx
index 3c9b16fcb..486c5951b 100644
--- a/app/components/Tooltip.tsx
+++ b/app/components/Tooltip.tsx
@@ -41,7 +41,7 @@ interface Props {
function TooltipTS(props: Props) {
const { title, placement } = props;
return (
- <Tooltip arrow title={title} placement="top" {...props}>
+ <Tooltip arrow title={title} disableInteractive placement="top" {...props}>
{props.children}
</Tooltip>
);
diff --git a/app/containers/MainPage.tsx b/app/containers/MainPage.tsx
index 469315cd6..9073f83a8 100644
--- a/app/containers/MainPage.tsx
+++ b/app/containers/MainPage.tsx
@@ -754,7 +754,7 @@ function MainPage(props: Props) {
<style>
{`
.default-splitter {
- --default-splitter-line-margin: 4px !important;
+ --default-splitter-line-margin: 2px !important;
--default-splitter-line-size: 1px !important;
--default-splitter-line-color: ${theme.palette.divider} !important;
}