Merge pull request #338 from nahuhh/amm_table

amm: icon beside amount & consistent size of add/edit
This commit is contained in:
Gerlof van Ek
2025-07-23 23:54:09 +02:00
committed by GitHub
9 changed files with 66 additions and 69 deletions

View File

@@ -122,13 +122,13 @@ const AmmTablesManager = (function() {
<td class="py-0 px-0 text-right text-sm"> <td class="py-0 px-0 text-right text-sm">
<div class="flex items-center justify-center monospace"> <div class="flex items-center justify-center monospace">
<span class="inline-flex mr-3 ml-3 align-middle items-center justify-center w-18 h-20 rounded"> <span class="inline-flex mr-3 ml-3 align-middle items-center justify-center w-18 h-20 rounded">
<img class="h-12" src="/static/images/coins/${fromImage}" alt="${fromDisplayName}"> <img class="h-12" src="/static/images/coins/${toImage}" alt="${toDisplayName}">
</span> </span>
<svg aria-hidden="true" class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <svg aria-hidden="true" class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z" clip-rule="evenodd"></path> <path fill-rule="evenodd" d="M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z" clip-rule="evenodd"></path>
</svg> </svg>
<span class="inline-flex mr-3 ml-3 align-middle items-center justify-center w-18 h-20 rounded"> <span class="inline-flex mr-3 ml-3 align-middle items-center justify-center w-18 h-20 rounded">
<img class="h-12" src="/static/images/coins/${toImage}" alt="${toDisplayName}"> <img class="h-12" src="/static/images/coins/${fromImage}" alt="${fromDisplayName}">
</span> </span>
</div> </div>
</td> </td>

View File

@@ -100,8 +100,6 @@
setTimeout(() => { setTimeout(() => {
activateTabWithRetry(normalizedTabId, retryCount + 1); activateTabWithRetry(normalizedTabId, retryCount + 1);
}, 100); }, 100);
} else {
} }
return; return;
} }

View File

@@ -26,7 +26,6 @@
</div> </div>
</section> </section>
<div class="xl:container mx-auto"> <div class="xl:container mx-auto">
{% include 'inc_messages.html' %} {% include 'inc_messages.html' %}
@@ -1347,7 +1346,7 @@
<div class="absolute inset-0 bg-gray-500 opacity-75 dark:bg-gray-900 dark:opacity-90"></div> <div class="absolute inset-0 bg-gray-500 opacity-75 dark:bg-gray-900 dark:opacity-90"></div>
</div> </div>
<div class="inline-block align-bottom bg-white dark:bg-gray-800 rounded-lg text-left overflow-visible shadow-xl transform transition-all sm:my-8 sm:align-middle lg:max-w-xl md:max-w-2xl md:w-full"> <div class="inline-block align-bottom bg-white dark:bg-gray-800 rounded-lg text-left overflow-visible shadow-xl transform transition-all sm:my-8 sm:align-middle md:max-w-2xl md:w-full">
<div class="bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4"> <div class="bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
<div class="sm:flex sm:items-start"> <div class="sm:flex sm:items-start">
<div class="mt-3 text-center sm:mt-0 sm:text-left w-full"> <div class="mt-3 text-center sm:mt-0 sm:text-left w-full">