Skip to content

Commit 54d2200

Browse files
HARSH  MAHAJANHARSH  MAHAJAN
authored andcommitted
new line
1 parent ff478cd commit 54d2200

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • src/routes/(console)/project-[region]-[project]/databases/database-[database]/table-[table]/columns

src/routes/(console)/project-[region]-[project]/databases/database-[database]/table-[table]/columns/+page.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
? (max < 0n ? -max : max) >= LARGE_NUMBER_THRESHOLD
218218
: Math.abs(max) >= LARGE_NUMBER_THRESHOLD_NUM);
219219
if (shouldShowTooltip) {
220-
tooltip = `Min: ${min.toLocaleString()}, Max: ${max.toLocaleString()}`;
220+
tooltip = `Min: ${min.toLocaleString()}\nMax: ${max.toLocaleString()}`;
221221
}
222222
} else if (hasValidMin) {
223223
display = `Min: ${formatLargeNumber(min)}`;
@@ -468,13 +468,15 @@
468468
{@const relationType = getRelationshipTypeForColumn(column)}
469469
{#if minMaxSize}
470470
{#if minMaxSize.tooltip}
471-
<Tooltip portal maxWidth="22rem" placement="top">
471+
<Tooltip portal maxWidth="20rem" placement="top">
472472
<Typography.Caption
473473
variant="400"
474474
color="--fgcolor-neutral-tertiary">
475475
{minMaxSize.display}
476476
</Typography.Caption>
477-
<div slot="tooltip">{minMaxSize.tooltip}</div>
477+
<div slot="tooltip" style="white-space: pre-line;">
478+
{minMaxSize.tooltip}
479+
</div>
478480
</Tooltip>
479481
{:else}
480482
<Typography.Caption

0 commit comments

Comments
 (0)