display "follow link" button for url-like values

This commit is contained in:
Brent Schroeter 2026-01-14 02:06:03 +00:00
parent 4b547faf7a
commit f5ee31c175
2 changed files with 10 additions and 0 deletions

View file

@ -264,6 +264,10 @@
}
}
}
.table-viewer__cell-indicator {
padding-right: 4px;
}
}
.table-viewer__notice {

View file

@ -156,6 +156,12 @@
<div>UNKNOWN</div>
</div>
{/if}
{#if value.t === "Text" && /^[a-z+.-]+:\/\/\S+$/i.test(value.c ?? "")}
<a class="table-viewer__cell-indicator" href={value.c}
><i class="ti ti-external-link"><div class="sr-only">Open link</div></i
></a
>
{/if}
{#if invalid_value}
<div class="table-viewer__cell-notice">
<i class="ti ti-alert-circle"></i>