Skip to content

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

chore: customizing the border radius of tooltip

Ilian Sapundshiev298833e58199
diff --git a/src/renderer/components/Tooltip.tsx b/src/renderer/components/Tooltip.tsx
index 13812320d..eac664a53 100644
--- a/src/renderer/components/Tooltip.tsx
+++ b/src/renderer/components/Tooltip.tsx
@@ -16,6 +16,7 @@
*
*/
+import AppConfig from '-/AppConfig';
import { adjustKeyBinding } from '-/components/dialogs/KeyboardDialog';
import Tooltip from '@mui/material/Tooltip';
@@ -54,12 +55,17 @@ function TooltipTS(props: Props) {
}
return (
<Tooltip
- arrow
+ arrow={true}
title={tooltipText}
disableInteractive
placement={placement}
slotProps={{
popper: {
+ sx: {
+ '& .MuiTooltip-tooltip': {
+ borderRadius: AppConfig.defaultCSSRadius,
+ },
+ },
modifiers: [
{
name: 'offset',