This commit is contained in:
gerlofvanek 2025-03-10 18:55:56 +01:00
parent 42d8abbc92
commit 76bd2d88b0
2 changed files with 15 additions and 14 deletions
basicswap
static/js
templates

View file

@ -575,14 +575,13 @@ const createSwapTableRow = async (swap) => {
</div> </div>
</div> </div>
</td> </td>
<!-- You Send Column -->
<!-- You Receive Column -->
<td class="py-0"> <td class="py-0">
<div class="py-3 px-4 text-left"> <div class="py-3 px-4 text-left">
<div class="items-center monospace"> <div class="items-center monospace">
<div class="pr-2"> <div class="text-sm font-semibold">${toAmount.toFixed(8)}</div>
<div class="text-sm font-semibold">${fromAmount.toFixed(8)}</div> <div class="text-sm text-gray-500 dark:text-gray-400">${toSymbol}</div>
<div class="text-sm text-gray-500 dark:text-gray-400">${fromSymbol}</div>
</div>
</div> </div>
</div> </div>
</td> </td>
@ -593,8 +592,8 @@ const createSwapTableRow = async (swap) => {
<div class="flex items-center justify-center"> <div class="flex items-center justify-center">
<span class="inline-flex mr-3 align-middle items-center justify-center w-18 h-20 rounded"> <span class="inline-flex mr-3 align-middle items-center justify-center w-18 h-20 rounded">
<img class="h-12" <img class="h-12"
src="/static/images/coins/${swap.coin_from.replace(' ', '-')}.png" src="/static/images/coins/${swap.coin_to.replace(' ', '-')}.png"
alt="${swap.coin_from}" alt="${swap.coin_to}"
onerror="this.src='/static/images/coins/default.png'"> onerror="this.src='/static/images/coins/default.png'">
</span> </span>
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
@ -602,20 +601,22 @@ const createSwapTableRow = async (swap) => {
</svg> </svg>
<span class="inline-flex ml-3 align-middle items-center justify-center w-18 h-20 rounded"> <span class="inline-flex ml-3 align-middle items-center justify-center w-18 h-20 rounded">
<img class="h-12" <img class="h-12"
src="/static/images/coins/${swap.coin_to.replace(' ', '-')}.png" src="/static/images/coins/${swap.coin_from.replace(' ', '-')}.png"
alt="${swap.coin_to}" alt="${swap.coin_from}"
onerror="this.src='/static/images/coins/default.png'"> onerror="this.src='/static/images/coins/default.png'">
</span> </span>
</div> </div>
</div> </div>
</td> </td>
<!-- You Receive Column --> <!-- You Send Column -->
<td class="py-0"> <td class="py-0">
<div class="py-3 px-4 text-right"> <div class="py-3 px-4 text-right">
<div class="items-center monospace"> <div class="items-center monospace">
<div class="text-sm font-semibold">${toAmount.toFixed(8)}</div> <div>
<div class="text-sm text-gray-500 dark:text-gray-400">${toSymbol}</div> <div class="text-sm font-semibold">${fromAmount.toFixed(8)}</div>
<div class="text-sm text-gray-500 dark:text-gray-400">${fromSymbol}</div>
</div>
</div> </div>
</div> </div>
</td> </td>

View file

@ -43,7 +43,7 @@
</div> </div>
</th> </th>
<th class="p-0"> <th class="p-0">
<div class="py-3 px-4 bg-coolGray-200 dark:bg-gray-600 text-right"> <div class="py-3 px-4 bg-coolGray-200 dark:bg-gray-600 text-left">
<span class="text-sm text-gray-600 dark:text-gray-300 font-semibold">You Receive</span> <span class="text-sm text-gray-600 dark:text-gray-300 font-semibold">You Receive</span>
</div> </div>
</th> </th>
@ -53,7 +53,7 @@
</div> </div>
</th> </th>
<th class="p-0"> <th class="p-0">
<div class="py-3 px-4 bg-coolGray-200 dark:bg-gray-600 text-left"> <div class="py-3 px-4 bg-coolGray-200 dark:bg-gray-600 text-right">
<span class="text-sm text-gray-600 dark:text-gray-300 font-semibold">You Send</span> <span class="text-sm text-gray-600 dark:text-gray-300 font-semibold">You Send</span>
</div> </div>
</th> </th>