From 28c8f0df32972cbca83359116f23b83a11365ac7 Mon Sep 17 00:00:00 2001 From: Atharv Parlikar <58113282+atharvParlikar@users.noreply.github.com> Date: Mon, 24 Jun 2024 18:21:18 +0530 Subject: [PATCH] Turned on tooltip on kanban cards with shortDelay (#5991) fixes: #5982 Demo: https://github.com/twentyhq/twenty/assets/58113282/6593381c-c01a-4259-9caa-8612247a9e95 --------- Co-authored-by: Lucas Bordeau --- .../record-board-card/components/RecordBoardCard.tsx | 2 +- .../components/RecordInlineCellContainer.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/twenty-front/src/modules/object-record/record-board/record-board-card/components/RecordBoardCard.tsx b/packages/twenty-front/src/modules/object-record/record-board/record-board-card/components/RecordBoardCard.tsx index 0ad27183c..0072081f1 100644 --- a/packages/twenty-front/src/modules/object-record/record-board/record-board-card/components/RecordBoardCard.tsx +++ b/packages/twenty-front/src/modules/object-record/record-board/record-board-card/components/RecordBoardCard.tsx @@ -262,7 +262,7 @@ export const RecordBoardCard = () => { recoilScopeId: recordId + fieldDefinition.fieldMetadataId, isLabelIdentifier: false, fieldDefinition: { - disableTooltip: true, + disableTooltip: false, fieldMetadataId: fieldDefinition.fieldMetadataId, label: fieldDefinition.label, iconName: fieldDefinition.iconName, diff --git a/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellContainer.tsx b/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellContainer.tsx index d93b2b309..2cb77520f 100644 --- a/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellContainer.tsx +++ b/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellContainer.tsx @@ -1,7 +1,7 @@ import React, { ReactElement, useContext } from 'react'; import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; -import { AppTooltip, IconComponent } from 'twenty-ui'; +import { AppTooltip, IconComponent, TooltipDelay } from 'twenty-ui'; import { FieldContext } from '@/object-record/record-field/contexts/FieldContext'; import { useFieldFocus } from '@/object-record/record-field/hooks/useFieldFocus'; @@ -136,6 +136,7 @@ export const RecordInlineCellContainer = ({ noArrow place="bottom" positionStrategy="fixed" + delay={TooltipDelay.shortDelay} /> )}