π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(nc-gui): ai longtext cell btn cursor issue
Ramesh Mane975382ea8aac
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/cells/AILongText.ts b/packages/nc-gui/components/smartsheet/grid/canvas/cells/AILongText.tsindex 088ac48fc6..9c287647a3 100644--- a/packages/nc-gui/components/smartsheet/grid/canvas/cells/AILongText.ts+++ b/packages/nc-gui/components/smartsheet/grid/canvas/cells/AILongText.ts@@ -144,7 +144,8 @@ const renderAIButton = (export const AILongTextCellRenderer: CellRenderer = {render: (ctx: CanvasRenderingContext2D, props) => {- const { value, x, y, width, height, spriteLoader, disabled, padding, mousePosition, actionManager, pk, column } = props+ const { value, x, y, width, height, spriteLoader, disabled, padding, mousePosition, actionManager, pk, column, setCursor } =+ propsconst isHovered = isBoxHovered({ x, y, width, height }, mousePosition)@@ -177,51 +178,52 @@ export const AILongTextCellRenderer: CellRenderer = {}}- const { x: xOffset, y: yOffset } = renderMultiLineText(ctx, {- x: x + padding,- y,- text: value.value,- maxWidth: width - padding * 2,- fillStyle: '#4a5268',- height,- })+ const { x: xOffset, y: yOffset } = renderMultiLineText(ctx, {+ x: x + padding,+ y,+ text: value.value,+ maxWidth: width - padding * 2,+ fillStyle: '#4a5268',+ height,+ })- if (isHovered) {- renderIconButton(ctx, {- buttonX: x + width - 28,- buttonY: y + 7,- buttonSize: 18,- borderRadius: 3,- iconData: {- size: 13,- xOffset: (18 - 13) / 2,- yOffset: (18 - 13) / 2,- },- mousePosition,- spriteLoader,- icon: 'maximize',- })- renderIconButton(ctx, {- buttonX: x + width - 52,- buttonY: y + 7,- buttonSize: 18,- borderRadius: 3,- iconData: {- size: 13,- xOffset: (18 - 13) / 2,- yOffset: (18 - 13) / 2,- },- mousePosition,- spriteLoader,- icon: 'refresh',- })- }+ if (isHovered) {+ renderIconButton(ctx, {+ buttonX: x + width - 28,+ buttonY: y + 7,+ buttonSize: 18,+ borderRadius: 3,+ iconData: {+ size: 13,+ xOffset: (18 - 13) / 2,+ yOffset: (18 - 13) / 2,+ },+ mousePosition,+ spriteLoader,+ icon: 'maximize',+ setCursor,+ })+ renderIconButton(ctx, {+ buttonX: x + width - 52,+ buttonY: y + 7,+ buttonSize: 18,+ borderRadius: 3,+ iconData: {+ size: 13,+ xOffset: (18 - 13) / 2,+ yOffset: (18 - 13) / 2,+ },+ mousePosition,+ spriteLoader,+ icon: 'refresh',+ setCursor,+ })+ }- return {- x: xOffset,- y: yOffset,- }-+ return {+ x: xOffset,+ y: yOffset,+ }return {x,