SYNC: fixed margin-right + in showing JSONL data

This commit is contained in:
SPRINX0\prochazka
2025-04-09 14:18:48 +02:00
committed by Diflow
parent 2ae63d2323
commit 544b75bcd5
2 changed files with 13 additions and 2 deletions

View File

@@ -7,6 +7,7 @@
export let value; export let value;
export let jsonParsedValue = undefined; export let jsonParsedValue = undefined;
export let editorTypes; export let editorTypes;
export let rightMargin = false;
$: stringified = stringifyCellValue( $: stringified = stringifyCellValue(
value, value,
@@ -20,7 +21,7 @@
{#if rowData == null} {#if rowData == null}
<span class="null">(No row)</span> <span class="null">(No row)</span>
{:else} {:else}
<span class={stringified.gridStyle} title={stringified.gridTitle}>{stringified.value}</span> <span class={stringified.gridStyle} title={stringified.gridTitle} class:rightMargin>{stringified.value}</span>
{/if} {/if}
<style> <style>
@@ -31,4 +32,8 @@
.valueCellStyle { .valueCellStyle {
color: var(--theme-icon-green); color: var(--theme-icon-green);
} }
.rightMargin {
margin-right: 16px;
}
</style> </style>

View File

@@ -73,7 +73,13 @@
class:alignRight={_.isNumber(value) && !showHint} class:alignRight={_.isNumber(value) && !showHint}
{style} {style}
> >
<CellValue {rowData} {value} {jsonParsedValue} {editorTypes} /> <CellValue
{rowData}
{value}
{jsonParsedValue}
{editorTypes}
rightMargin={_.isNumber(value) && !showHint && (editorTypes?.explicitDataType || col.foreignKey)}
/>
{#if showHint} {#if showHint}
<span class="hint" <span class="hint"