π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(nc-gui): ai long text tooltip issue
Ramesh Manee19503c9a00d
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/cells/AILongText.ts b/packages/nc-gui/components/smartsheet/grid/canvas/cells/AILongText.tsindex 2b60d2c8ab..088ac48fc6 100644--- a/packages/nc-gui/components/smartsheet/grid/canvas/cells/AILongText.ts+++ b/packages/nc-gui/components/smartsheet/grid/canvas/cells/AILongText.ts@@ -177,7 +177,6 @@ export const AILongTextCellRenderer: CellRenderer = {}}- if (value?.value) {const { x: xOffset, y: yOffset } = renderMultiLineText(ctx, {x: x + padding,y,@@ -222,7 +221,7 @@ export const AILongTextCellRenderer: CellRenderer = {x: xOffset,y: yOffset,}- }+return {x,@@ -271,10 +270,10 @@ export const AILongTextCellRenderer: CellRenderer = {}return false},- async handleHover({ row, column, mousePosition, getCellPosition, t }) {+ async handleHover({ row, column, mousePosition, getCellPosition, t, value }) {const { tryShowTooltip, hideTooltip } = useTooltipStore()hideTooltip()- if (!row || !column?.id || !mousePosition || column?.isInvalidColumn?.isInvalid) return+ if (!row || !column?.id || !mousePosition || column?.isInvalidColumn?.isInvalid || !value || !value?.value) returnconst { x, y, width } = getCellPosition(column, row.rowMeta.rowIndex!)const expandIconBox = { x: x + width - 28, y: y + 7, width: 18, height: 18 }