ui fix
This commit is contained in:
parent
fbab3bb01e
commit
d29fc9e4a0
@ -948,19 +948,7 @@
|
||||
<span>{item[column.key]?.toFixed(2)}%</span>
|
||||
{/if}
|
||||
{:else if column?.type === "rating"}
|
||||
{#if ["Strong Buy", "Buy"].includes(item[column.key])}
|
||||
<span class="text-green-700 dark:text-[#00FC50]"
|
||||
>{item[column.key]}</span
|
||||
>
|
||||
{:else if ["Strong Sell", "Sell"].includes(item[column.key])}
|
||||
<span class="text-red-700 dark:text-[#FF2F1F]"
|
||||
>{item[column.key]}</span
|
||||
>
|
||||
{:else if item[column.key] === "Hold"}
|
||||
<span class="text-[#FFA838]">{item[column.key]}</span>
|
||||
{:else}
|
||||
n/a
|
||||
{/if}
|
||||
{item[column.key]}
|
||||
{:else if column.type === "sentiment"}
|
||||
<div
|
||||
class={item[column.key] >= 55
|
||||
|
||||
@ -68,7 +68,7 @@ const resizeObserver = new ResizeObserver(() => {
|
||||
if (chart && browser) {
|
||||
const newWidth = node.clientWidth;
|
||||
// Set height based on viewport width: 300 for mobile, 360 for desktop
|
||||
const newHeight = (node.clientWidth < 600) ? 300 : 360;
|
||||
const newHeight = (node.clientWidth < 600) ? 300 : 330;
|
||||
|
||||
chart?.setSize(newWidth, newHeight, false);
|
||||
}
|
||||
|
||||
@ -451,7 +451,9 @@
|
||||
<div class="flex flex-col items-start">
|
||||
<HoverStockChart symbol={item?.ticker} />
|
||||
|
||||
<span class="">
|
||||
<span
|
||||
class="text-sm text-gray-800 dark:text-gray-200"
|
||||
>
|
||||
{item?.name?.length > charNumber
|
||||
? item?.name?.slice(0, charNumber) + "..."
|
||||
: item?.name}
|
||||
@ -465,23 +467,7 @@
|
||||
>
|
||||
<div class="flex flex-col sm:flex-row items-start">
|
||||
<span class="mr-1">{item?.action_company}:</span>
|
||||
<span
|
||||
class="font-semibold {[
|
||||
'Strong Buy',
|
||||
'Buy',
|
||||
'Outperform',
|
||||
]?.includes(item?.rating_current)
|
||||
? 'text-green-700 dark:text-[#00FC50] '
|
||||
: item?.rating_current === 'Hold'
|
||||
? '"text-red-700 dark:text-[#FF7070] "'
|
||||
: [
|
||||
'Strong Sell',
|
||||
'Sell',
|
||||
'Underperform',
|
||||
]?.includes(item?.rating_current)
|
||||
? 'text-red-700 dark:text-[#FF2F1F] '
|
||||
: 'text-muted dark:text-gray-300 '}"
|
||||
>
|
||||
<span>
|
||||
{item?.rating_current}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@ -218,23 +218,7 @@
|
||||
>
|
||||
<div class="flex flex-col sm:flex-row items-start">
|
||||
<span class="mr-1">{item?.action}:</span>
|
||||
<span
|
||||
class=" {[
|
||||
'Strong Buy',
|
||||
'Buy',
|
||||
'Outperform',
|
||||
]?.includes(item?.rating_current)
|
||||
? 'text-green-700 dark:text-[#00FC50]'
|
||||
: item?.rating_current === 'Hold'
|
||||
? '"text-red-700 dark:text-[#FF7070]"'
|
||||
: [
|
||||
'Strong Sell',
|
||||
'Sell',
|
||||
'Underperform',
|
||||
]?.includes(item?.rating_current)
|
||||
? 'text-red-700 dark:text-[#FF2F1F]'
|
||||
: 'text-muted dark:text-gray-300'}"
|
||||
>
|
||||
<span>
|
||||
{item?.rating_current}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@ -381,7 +381,7 @@
|
||||
class="text-muted dark:text-white w-full max-w-screen sm:max-w-[1250px] min-h-screen overflow-hidden"
|
||||
>
|
||||
<!-- Page wrapper -->
|
||||
<div class="mt-5 flex flex-col w-full relative w-full sm:max-w-[1250px]">
|
||||
<div class="flex flex-col w-full relative w-full sm:max-w-[1250px]">
|
||||
<main class="grow w-full">
|
||||
<section class="">
|
||||
<div class="w-full">
|
||||
@ -502,7 +502,7 @@
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 16 16"
|
||||
><path
|
||||
fill={$mode === "light" ? "#2C6288" : "white"}
|
||||
fill={$mode === "light" ? "black" : "white"}
|
||||
d="M2.866 14.85c-.078.444.36.791.746.593l4.39-2.256l4.389 2.256c.386.198.824-.149.746-.592l-.83-4.73l3.522-3.356c.33-.314.16-.888-.282-.95l-4.898-.696L8.465.792a.513.513 0 0 0-.927 0L5.354 5.12l-4.898.696c-.441.062-.612.636-.283.95l3.523 3.356l-.83 4.73zm4.905-2.767l-3.686 1.894l.694-3.957a.565.565 0 0 0-.163-.505L1.71 6.745l4.052-.576a.525.525 0 0 0 .393-.288L8 2.223l1.847 3.658a.525.525 0 0 0 .393.288l4.052.575l-2.906 2.77a.565.565 0 0 0-.163.506l.694 3.957l-3.686-1.894a.503.503 0 0 0-.461 0z"
|
||||
/></svg
|
||||
>
|
||||
@ -529,7 +529,7 @@
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 16 16"
|
||||
><path
|
||||
fill={$mode === "light" ? "#2C6288" : "white"}
|
||||
fill={$mode === "light" ? "black" : "white"}
|
||||
d="M2.866 14.85c-.078.444.36.791.746.593l4.39-2.256l4.389 2.256c.386.198.824-.149.746-.592l-.83-4.73l3.522-3.356c.33-.314.16-.888-.282-.95l-4.898-.696L8.465.792a.513.513 0 0 0-.927 0L5.354 5.12l-4.898.696c-.441.062-.612.636-.283.95l3.523 3.356l-.83 4.73zm4.905-2.767l-3.686 1.894l.694-3.957a.565.565 0 0 0-.163-.505L1.71 6.745l4.052-.576a.525.525 0 0 0 .393-.288L8 2.223l1.847 3.658a.525.525 0 0 0 .393.288l4.052.575l-2.906 2.77a.565.565 0 0 0-.163.506l.694 3.957l-3.686-1.894a.503.503 0 0 0-.461 0z"
|
||||
/></svg
|
||||
>
|
||||
@ -544,7 +544,7 @@
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 16 16"
|
||||
><path
|
||||
fill={$mode === "light" ? "#2C6288" : "white"}
|
||||
fill={$mode === "light" ? "black" : "white"}
|
||||
d="M2.866 14.85c-.078.444.36.791.746.593l4.39-2.256l4.389 2.256c.386.198.824-.149.746-.592l-.83-4.73l3.522-3.356c.33-.314.16-.888-.282-.95l-4.898-.696L8.465.792a.513.513 0 0 0-.927 0L5.354 5.12l-4.898.696c-.441.062-.612.636-.283.95l3.523 3.356l-.83 4.73zm4.905-2.767l-3.686 1.894l.694-3.957a.565.565 0 0 0-.163-.505L1.71 6.745l4.052-.576a.525.525 0 0 0 .393-.288L8 2.223l1.847 3.658a.525.525 0 0 0 .393.288l4.052.575l-2.906 2.77a.565.565 0 0 0-.163.506l.694 3.957l-3.686-1.894a.503.503 0 0 0-.461 0z"
|
||||
/></svg
|
||||
>
|
||||
@ -626,7 +626,7 @@
|
||||
viewBox="0 0 16 16"
|
||||
><path
|
||||
fill={$mode === "light"
|
||||
? "#2C6288"
|
||||
? "black"
|
||||
: "white"}
|
||||
d="M2.866 14.85c-.078.444.36.791.746.593l4.39-2.256l4.389 2.256c.386.198.824-.149.746-.592l-.83-4.73l3.522-3.356c.33-.314.16-.888-.282-.95l-4.898-.696L8.465.792a.513.513 0 0 0-.927 0L5.354 5.12l-4.898.696c-.441.062-.612.636-.283.95l3.523 3.356l-.83 4.73zm4.905-2.767l-3.686 1.894l.694-3.957a.565.565 0 0 0-.163-.505L1.71 6.745l4.052-.576a.525.525 0 0 0 .393-.288L8 2.223l1.847 3.658a.525.525 0 0 0 .393.288l4.052.575l-2.906 2.77a.565.565 0 0 0-.163.506l.694 3.957l-3.686-1.894a.503.503 0 0 0-.461 0z"
|
||||
/></svg
|
||||
@ -662,7 +662,7 @@
|
||||
viewBox="0 0 16 16"
|
||||
><path
|
||||
fill={$mode === "light"
|
||||
? "#2C6288"
|
||||
? "black"
|
||||
: "white"}
|
||||
d="M2.866 14.85c-.078.444.36.791.746.593l4.39-2.256l4.389 2.256c.386.198.824-.149.746-.592l-.83-4.73l3.522-3.356c.33-.314.16-.888-.282-.95l-4.898-.696L8.465.792a.513.513 0 0 0-.927 0L5.354 5.12l-4.898.696c-.441.062-.612.636-.283.95l3.523 3.356l-.83 4.73zm4.905-2.767l-3.686 1.894l.694-3.957a.565.565 0 0 0-.163-.505L1.71 6.745l4.052-.576a.525.525 0 0 0 .393-.288L8 2.223l1.847 3.658a.525.525 0 0 0 .393.288l4.052.575l-2.906 2.77a.565.565 0 0 0-.163.506l.694 3.957l-3.686-1.894a.503.503 0 0 0-.461 0z"
|
||||
/></svg
|
||||
@ -685,7 +685,7 @@
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 16 16"
|
||||
><path
|
||||
fill={$mode === "light" ? "#2C6288" : "white"}
|
||||
fill={$mode === "light" ? "black" : "white"}
|
||||
d="M2.866 14.85c-.078.444.36.791.746.593l4.39-2.256l4.389 2.256c.386.198.824-.149.746-.592l-.83-4.73l3.522-3.356c.33-.314.16-.888-.282-.95l-4.898-.696L8.465.792a.513.513 0 0 0-.927 0L5.354 5.12l-4.898.696c-.441.062-.612.636-.283.95l3.523 3.356l-.83 4.73zm4.905-2.767l-3.686 1.894l.694-3.957a.565.565 0 0 0-.163-.505L1.71 6.745l4.052-.576a.525.525 0 0 0 .393-.288L8 2.223l1.847 3.658a.525.525 0 0 0 .393.288l4.052.575l-2.906 2.77a.565.565 0 0 0-.163.506l.694 3.957l-3.686-1.894a.503.503 0 0 0-.461 0z"
|
||||
/></svg
|
||||
>
|
||||
@ -875,7 +875,7 @@
|
||||
<!--Start Ticker Section-->
|
||||
|
||||
<nav
|
||||
class="sm:ml-4 border-b-[2px] overflow-x-auto whitespace-nowrap no-scrollbar"
|
||||
class="sm:ml-4 border-b-[2px] border-[#2C6288] dark:border-white overflow-x-auto whitespace-nowrap no-scrollbar"
|
||||
>
|
||||
<ul
|
||||
class="flex flex-row items-center w-full text-[1rem] text-white"
|
||||
|
||||
@ -1166,7 +1166,7 @@
|
||||
<div class="flex flex-row items-center justify-between">
|
||||
<h3 class="text-2xl md:text-3xl font-bold">Lifetime</h3>
|
||||
<div>
|
||||
<span class="text-3xl md:text-4xl font-bold">$799</span>
|
||||
<span class="text-3xl md:text-4xl font-bold">$599</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class=" md:text-lg mt-4 lg:mt-2">
|
||||
@ -1198,13 +1198,11 @@
|
||||
</div>
|
||||
<div class="relative flex flex-col items-center">
|
||||
<div
|
||||
class="h-4 w-4 rounded-full bg-zinc-500 dark:bg-gray-600 relative z-10"
|
||||
class="h-4 w-4 rounded-full bg-blue-500 relative z-10"
|
||||
></div>
|
||||
<div class="mt-2 text-center">
|
||||
<div class="text-lg sm:text-xl font-semibold">
|
||||
<span class="text-gray-800 dark:text-gray-300 line-through"
|
||||
>$599</span
|
||||
>
|
||||
<span>$599</span>
|
||||
</div>
|
||||
<div
|
||||
class="text-xs sm:text-sm text-gray-800 dark:text-gray-300"
|
||||
@ -1215,11 +1213,11 @@
|
||||
</div>
|
||||
<div class="relative flex flex-col items-center">
|
||||
<div
|
||||
class="h-4 w-4 rounded-full bg-blue-500 relative z-10"
|
||||
class="h-4 w-4 rounded-full bg-zinc-500 dark:bg-gray-600 relative z-10"
|
||||
></div>
|
||||
<div class="mt-2 text-center">
|
||||
<div class="text-lg sm:text-xl font-semibold">
|
||||
<span class="">$799</span>
|
||||
<span class="text-zinc-500 dark:text-zinc-400">$799</span>
|
||||
</div>
|
||||
<div
|
||||
class="text-xs sm:text-sm text-gray-800 dark:text-gray-300"
|
||||
|
||||
@ -901,7 +901,7 @@
|
||||
<!--Start Ticker Section-->
|
||||
|
||||
<nav
|
||||
class="sm:ml-4 border-b-[2px] overflow-x-auto whitespace-nowrap no-scrollbar"
|
||||
class="sm:ml-4 border-b-[2px] border-[#2C6288] dark:border-white overflow-x-auto whitespace-nowrap no-scrollbar"
|
||||
>
|
||||
<ul class="flex flex-row items-center w-full text-[1rem]">
|
||||
<a
|
||||
|
||||
@ -428,7 +428,7 @@
|
||||
{:else if i < Math.floor(item?.analystScore)}
|
||||
<!-- Render a full star -->
|
||||
<svg
|
||||
class="w-4 h-4 text-[#FBCE3C]"
|
||||
class="w-4 h-4 text-[#FFA500] dark:text-[#FBCE3C]"
|
||||
aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="currentColor"
|
||||
@ -466,18 +466,7 @@
|
||||
</td>
|
||||
|
||||
<td
|
||||
class="text-sm sm:text-[1rem] whitespace-nowrap text-end {[
|
||||
'Strong Buy',
|
||||
'Buy',
|
||||
]?.includes(item?.rating_current)
|
||||
? ' text-green-700 dark:text-[#00FC50] '
|
||||
: item?.rating_current === 'Hold'
|
||||
? '"text-red-700 dark:text-[#FF7070]"'
|
||||
: ['Strong Sell', 'Sell']?.includes(
|
||||
item?.rating_current,
|
||||
)
|
||||
? 'text-red-700 dark:text-[#FF2F1F]'
|
||||
: ''}"
|
||||
class="text-sm sm:text-[1rem] whitespace-nowrap text-end"
|
||||
>
|
||||
{item?.rating_current}
|
||||
</td>
|
||||
@ -497,7 +486,7 @@
|
||||
<div class="flex flex-col items-end">
|
||||
<div class="flex flex-row items-center">
|
||||
{#if Math?.ceil(item?.adjusted_pt_prior) !== 0}
|
||||
<span class="text-gray-100 font-normal"
|
||||
<span class=" font-normal"
|
||||
>{Math?.ceil(item?.adjusted_pt_prior)}</span
|
||||
>
|
||||
<svg
|
||||
@ -506,7 +495,7 @@
|
||||
viewBox="0 0 24 24"
|
||||
><path
|
||||
fill="none"
|
||||
stroke="white"
|
||||
stroke="currentColor"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2.5"
|
||||
@ -536,7 +525,7 @@
|
||||
data?.getStockQuote?.price -
|
||||
1 >=
|
||||
0
|
||||
? 'text-green-700 dark:text-[#00FC50] '
|
||||
? "before:content-['+'] text-green-700 dark:text-[#00FC50]"
|
||||
: item?.adjusted_pt_current /
|
||||
data?.getStockQuote?.price -
|
||||
1 <
|
||||
@ -562,7 +551,7 @@
|
||||
<div class="flex flex-col items-end">
|
||||
{#if latestInfoDate(item?.date)}
|
||||
<label
|
||||
class="border-gray-300 shadow-sm bg-blue-100 dark:bg-[#fff] text-black font-semibold text-xs rounded px-2 py-0.5 ml-3 mb-1"
|
||||
class="border-gray-300 shadow-md bg-[#fff] text-black font-semibold text-xs rounded px-2 py-0.5 ml-3 mb-1"
|
||||
>
|
||||
New
|
||||
</label>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user