Skip to content

Commit

Permalink
fix(app): use trunc fn instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Swepool committed Jul 16, 2024
1 parent f588f66 commit a54dde8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts">
import { cn } from "$lib/utilities/shadcn.ts"
import * as Tooltip from "$lib/components/ui/tooltip"
import { truncate } from "$lib/utilities/format.ts";
export let value: {
chain_display_name: string
Expand All @@ -18,7 +19,7 @@ export let value: {
<div>{value.channel_id}</div>
<Tooltip.Root>
<Tooltip.Trigger>
<div class="max-w-[200px] truncate">{value.port_id}</div>
<div class="text-start">{truncate(value.port_id, 10)}</div>
</Tooltip.Trigger>
<Tooltip.Content>
{value.port_id}
Expand Down

0 comments on commit a54dde8

Please sign in to comment.