This commit is contained in:
MuslemRahimi 2025-02-10 15:29:46 +01:00
parent efb65a72ce
commit d629f09f5a
2 changed files with 13 additions and 12 deletions

View File

@ -502,8 +502,10 @@
) )
: "n/a"} : "n/a"}
</span> </span>
{#if item?.revenueEst !== null && item?.revenueEst !== null} {#if item?.revenueEst !== null && item?.revenuePrior !== null && item?.revenuePrior !== 0}
{#if item?.revenueEst / item?.revenuePrior - 1 >= 0} {#if !isFinite((item?.revenueEst / item?.revenuePrior - 1) * 100)}
<span class="ml-1"></span>
{:else if item?.revenueEst / item?.revenuePrior - 1 >= 0}
<span class="ml-1 text-[#22C55E]"> <span class="ml-1 text-[#22C55E]">
+{( +{(
(item?.revenueEst / (item?.revenueEst /

View File

@ -25,8 +25,12 @@
<article <article
class="z-5 relative mx-1 -mt-10 rounded-t-md bg-default p-3 xs:p-4 lg:-mt-16 lg:ml-3 lg:p-5 xl:mx-4" class="z-5 relative mx-1 -mt-10 rounded-t-md bg-default p-3 xs:p-4 lg:-mt-16 lg:ml-3 lg:p-5 xl:mx-4"
> >
<header class="pb-3 border-b-[2px] border-white w-full sm:min-w-[850px] sm:max-w-[850px]"> <header
<h1 class="mb-3 text-2xl sm:text-3xl font-bold text-white md:text-4xl "> class="pb-3 border-b-[2px] border-white w-full sm:min-w-[850px] sm:max-w-[850px]"
>
<h1
class="mb-3 text-2xl sm:text-3xl font-bold text-white md:text-4xl"
>
{article?.title} {article?.title}
</h1> </h1>
<div class="text-white"> <div class="text-white">
@ -43,10 +47,10 @@
</div> </div>
</div> </div>
<div class="flex flex-col text-white mt-3"> <div class="flex flex-col text-white mt-3">
<div class="flex flex-wrap gap-x-2 gap-y-3 "> <div class="flex flex-wrap gap-x-2 gap-y-3">
{#each article?.tags as tags} {#each article?.tags || [] as tags}
<label <label
class="px-2 text-sm py-1 text-black rounded bg-white ml-0" class="px-2 text-sm py-1 text-black rounded bg-white ml-0"
> >
{tags} {tags}
</label> </label>
@ -57,12 +61,7 @@
<div class="text-lg mt-4"> <div class="text-lg mt-4">
<div class="content"> <div class="content">
{@html article?.description} {@html article?.description}
</div> </div>
</div> </div>
</article> </article>