update table

This commit is contained in:
MuslemRahimi 2024-09-22 12:58:29 +02:00
parent d626fb0dca
commit 1b172dd4bb

View File

@ -1384,10 +1384,10 @@ function handleInput(event) {
</thead>
<tbody>
{#each displayResults as item (item?.symbol)}
<tr on:click={() => {handleSave(false); goto("/stocks/"+item?.symbol)}} class="sm:hover:bg-[#245073] sm:hover:bg-opacity-[0.2] bg-[#09090B] border-b-[#09090B] odd:bg-[#27272A] cursor-pointer">
<tr on:click={() => {handleSave(false)}} class="sm:hover:bg-[#245073] sm:hover:bg-opacity-[0.2] bg-[#09090B] border-b-[#09090B] odd:bg-[#27272A]">
<td class="border-b-[#09090B] whitespace-nowrap">
<div class="flex flex-col items-start">
<span class="text-blue-400 text-sm sm:text-[1rem]">{item?.symbol}</span>
<a href={"/stocks/"+item?.symbol} class="sm:hover:text-white text-blue-400 text-sm sm:text-[1rem]">{item?.symbol}</a>
<span class="text-white text-xs sm:hidden">{item?.name?.length > charNumber ? item?.name?.slice(0, charNumber) + "..." : item?.name}</span>
</div>
</td>