-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add port id to channels
- Loading branch information
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
13 changes: 12 additions & 1 deletion
13
app/src/routes/explorer/(components)/cell-origin-channel.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,28 @@ | ||
<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 | ||
chain_id: string | ||
connection_id: string | ||
channel_id: string | ||
port_id: string | ||
} | ||
</script> | ||
|
||
<div class={cn("flex flex-col ")} {...$$restProps}> | ||
<div {...$$restProps} class={cn("flex flex-col ")}> | ||
<div class="font-bold">{value.chain_display_name}</div> | ||
<div>{value.chain_id}</div> | ||
<div>{value.connection_id}</div> | ||
<div>{value.channel_id}</div> | ||
<Tooltip.Root> | ||
<Tooltip.Trigger> | ||
<div class="text-start">{truncate(value.port_id, 10)}</div> | ||
</Tooltip.Trigger> | ||
<Tooltip.Content> | ||
{value.port_id} | ||
</Tooltip.Content> | ||
</Tooltip.Root> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters