This commit is contained in:
MuslemRahimi 2025-04-07 19:01:38 +02:00
parent dc43d7fb13
commit b1c682a3bf

View File

@ -340,7 +340,6 @@
$${underlyingPrice} $${underlyingPrice}
(<span>${underlyingPctChange.toFixed(2)}%</span>) (<span>${underlyingPctChange.toFixed(2)}%</span>)
</div> </div>
<br>
<div class=""> <div class="">
<span class="text-start font-semibold">Profit or Loss:</span> <span class="text-start font-semibold">Profit or Loss:</span>
${profitLoss < 0 ? "-$" : "$"}${Math.abs(profitLoss).toLocaleString("en-US")} ${profitLoss < 0 ? "-$" : "$"}${Math.abs(profitLoss).toLocaleString("en-US")}
@ -350,6 +349,7 @@
`; `;
}, },
}, },
plotOptions: { plotOptions: {
area: { area: {
fillOpacity: 0.2, fillOpacity: 0.2,
@ -621,8 +621,7 @@
</p> </p>
<div class="mt-4"> <div class="mt-4">
<!-- Table header --> {#if isLoaded && config}
<!-- Table container --> <!-- Table container -->
<div <div
class="overflow-x-auto border border-gray-300 dark:border-gray-600 rounded" class="overflow-x-auto border border-gray-300 dark:border-gray-600 rounded"
@ -675,7 +674,9 @@
> >
Price Price
</th> </th>
<th scope="col" class="px-4 py-1.5 text-sm font-semibold" <th
scope="col"
class="px-4 py-1.5 text-sm font-semibold"
></th> ></th>
</tr> </tr>
</thead> </thead>
@ -910,13 +911,10 @@
</table> </table>
</div> </div>
{#if isLoaded}
{#if config}
<div <div
class="shadow-sm mt-5 border border-gray-300 dark:border-gray-800 rounded" class="shadow-sm mt-5 border border-gray-300 dark:border-gray-800 rounded"
use:highcharts={config} use:highcharts={config}
></div> ></div>
{/if}
<div class="mt-5"> <div class="mt-5">
<h1 <h1