π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: ai review changes
Ramesh Mane24f311399ed0
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/utils/canvas.ts b/packages/nc-gui/components/smartsheet/grid/canvas/utils/canvas.tsindex eaf361328a..07e0da9142 100644--- a/packages/nc-gui/components/smartsheet/grid/canvas/utils/canvas.ts+++ b/packages/nc-gui/components/smartsheet/grid/canvas/utils/canvas.ts@@ -913,7 +913,9 @@ export function renderMultiLineText(}// Include `firstLineMaxWidth` in the cache key to avoid incorrect caching- const cacheKey = `${text}-${fontFamily}-${maxWidth}-${maxLines}-${firstLineMaxWidth ?? 'default'}`+ const cacheKey = `${text}-${fontFamily}-${maxWidth}-${maxLines}-${firstLineMaxWidth ?? 'default'}-${+ renderAsPreTag ? 'pre' : 'plain'+ }`const cachedText = multiLineTextCache.get(cacheKey)if (cachedText) {@@ -921,7 +923,6 @@ export function renderMultiLineText(width = cachedText.width} else {lines = wrapTextToLines(ctx, { text, maxWidth, maxLines, firstLineMaxWidth, renderAsPreTag })- console.log('lines', lines)width = Math.min(Math.max(...lines.map((line) => ctx.measureText(line).width)), maxWidth)multiLineTextCache.set(cacheKey, { lines, width })