Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/NetworkSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ onMounted(async () => {
</script>

<template>
<div class="space-y-3 min-w-[320px]">
<div class="space-y-3 w-full sm:min-w-[320px]">

<div class="font-semibold text-lg">Node Management</div>

Expand All @@ -187,9 +187,9 @@ onMounted(async () => {
size="sm"
@click="handleSelect(node.url)"
>
<ItemContent class="flex-1">
<ItemContent class="flex-1 min-w-0">
<ItemTitle>{{ node.isCustom ? 'Custom Node' : `Default Node` }}</ItemTitle>
<ItemDescription class="font-mono">
<ItemDescription class="font-mono break-all">
{{ node.url }}
</ItemDescription>
</ItemContent>
Expand Down
21 changes: 11 additions & 10 deletions src/pages/Receive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,33 +189,34 @@ function goBack() {
v-for="block in unreceivedBlocks"
:key="block.hash.toString()"
variant="muted"
class="border-border"
class="border-border flex-col items-stretch sm:flex-row sm:items-center"
>
<ItemContent class="flex-1">
<ItemContent class="flex-1 min-w-0">
<ItemTitle>
{{ addNumberDecimals(block.amount, block.token.decimals) }}
{{ block.token?.symbol || 'Unknown' }}
</ItemTitle>
<ItemDescription class="space-y-0.5 line-clamp-none">
<ItemDescription class="space-y-2 line-clamp-none">
<div>
<span class="font-medium">From:</span>
<span class="font-mono ml-1">{{ block.address.toString() }}</span>
<div class="text-xs font-medium text-muted-foreground">From</div>
<div class="font-mono break-all text-foreground">{{ block.address.toString() }}</div>
</div>
<div>
<span class="font-medium">ZTS:</span>
<span class="ml-1">{{ block.tokenStandard.toString() }}</span>
<div class="text-xs font-medium text-muted-foreground">ZTS</div>
<div class="font-mono break-all text-foreground">{{ block.tokenStandard.toString() }}</div>
</div>
<div>
<span class="font-medium">Time:</span>
<span class="ml-1">{{ formatDate(block.confirmationDetail?.momentumTimestamp || 0) }}</span>
<div class="text-xs font-medium text-muted-foreground">Time</div>
<div class="text-foreground">{{ formatDate(block.confirmationDetail?.momentumTimestamp || 0) }}</div>
</div>
</ItemDescription>
</ItemContent>
<ItemActions>
<ItemActions class="shrink-0">
<Button
@click="handleReceive(block)"
:disabled="currentlyReceivingHash === block.hash.toString()"
size="sm"
class="w-full sm:w-auto"
>
<span v-if="currentlyReceivingHash === block.hash.toString()">Receiving...</span>
<span v-else>Receive</span>
Expand Down