SYNC: fixed display numbers

This commit is contained in:
SPRINX0\prochazka
2025-12-12 16:18:53 +01:00
committed by Diflow
parent 60f31008c0
commit 6b66c273b4

View File

@@ -57,7 +57,11 @@
$: style = computeStyle(maxWidth, col); $: style = computeStyle(maxWidth, col);
$: isJson = $: isJson =
_.isPlainObject(value) && !(value?.type == 'Buffer' && _.isArray(value.data)) && !value.$oid && !value.$bigint && !value.$decimal; _.isPlainObject(value) &&
!(value?.type == 'Buffer' && _.isArray(value.data)) &&
!value.$oid &&
!value.$bigint &&
!value.$decimal;
// don't parse JSON for explicit data types // don't parse JSON for explicit data types
$: jsonParsedValue = !editorTypes?.explicitDataType && isJsonLikeLongString(value) ? safeJsonParse(value) : null; $: jsonParsedValue = !editorTypes?.explicitDataType && isJsonLikeLongString(value) ? safeJsonParse(value) : null;
@@ -80,7 +84,7 @@
class:isFocusedColumn class:isFocusedColumn
class:hasOverlayValue class:hasOverlayValue
class:isMissingOverlayField class:isMissingOverlayField
class:alignRight={ (_.isNumber(value) || isTypeNumber(col.dataType)) && !showHint} class:alignRight={(_.isNumber(value) || isTypeNumber(col.dataType)) && !showHint && !isModifiedCell}
{style} {style}
> >
{#if hasOverlayValue} {#if hasOverlayValue}