mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 02:56:01 +00:00
SYNC: fixed margin-right + in showing JSONL data
This commit is contained in:
committed by
Diflow
parent
2ae63d2323
commit
544b75bcd5
@@ -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>
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user