Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat: limit tooltip max width

QiShaoXuanbf6545af7ad6
diff --git a/packages/app/src/ui/tooltip/Tooltip.tsx b/packages/app/src/ui/tooltip/Tooltip.tsx
index 5182612f74..ff533fedf3 100644
--- a/packages/app/src/ui/tooltip/Tooltip.tsx
+++ b/packages/app/src/ui/tooltip/Tooltip.tsx
@@ -5,6 +5,7 @@ import type { TooltipProps } from '@mui/material';
const StyledTooltip = styled(StyledPopperContainer)(({ theme }) => {
return {
+ maxWidth: '320px',
boxShadow: theme.shadow.tooltip,
padding: '4px 12px',
backgroundColor: theme.colors.tooltipBackground,