diff --git a/src/lib/components/IndexSidecard.svelte b/src/lib/components/IndexSidecard.svelte index 70c5aed6..59464c6d 100644 --- a/src/lib/components/IndexSidecard.svelte +++ b/src/lib/components/IndexSidecard.svelte @@ -1,103 +1,89 @@ - -
-

- About {$indexTicker} -

-

- {description} -

- - -
- - {#if topSectorList?.length !== 0} -
-
- -
-

- Top Sectors -

- -
- - - - - - - - - - {#each topSectorList as item} - {#if item?.weightPercentage > 0} - - - - - - {/if} - {/each} - -
SectorWeight %
- listItem?.title === item?.sector, - )?.link} - class="sm:hover:underline sm:hover:underline-offset-4 text-white truncate" - > - {item?.sector} - - - {abbreviateNumber(item?.weightPercentage?.toFixed(2))}% -
-
- - - All Sectors - + } + + +
+

+ About {$indexTicker} +

+

+ {description} +

+
+ +{#if topSectorList?.length !== 0} +
+
+ +
+

+ Top Sectors +

+ +
+ + + + + + + + + + {#each topSectorList as item} + {#if item?.weightPercentage > 0} + + + + + + {/if} + {/each} + +
SectorWeight %
+ listItem?.title === item?.sector, + )?.link} + class="sm:hover:underline sm:hover:underline-offset-4 truncate" + > + {item?.sector} + + + {abbreviateNumber(item?.weightPercentage?.toFixed(2))}% +
+ + + All Sectors +
- {/if} - - - \ No newline at end of file +
+{/if} diff --git a/src/routes/index/[tickerID]/+page.svelte b/src/routes/index/[tickerID]/+page.svelte index f2e3369f..0c8fa85d 100644 --- a/src/routes/index/[tickerID]/+page.svelte +++ b/src/routes/index/[tickerID]/+page.svelte @@ -218,21 +218,21 @@ hour: "numeric", hour12: true, }); - return `${timeString.replace(/\s/g, " ")}`; + return `${timeString.replace(/\s/g, " ")}`; } else if (["1W", "1M"].includes(displayData)) { const timeString = date?.toLocaleDateString("en-US", { month: "short", day: "numeric", timeZone: "UTC", }); - return `${timeString}`; + return `${timeString}`; } else { const timeString = date?.toLocaleDateString("en-US", { year: "2-digit", month: "short", timeZone: "UTC", }); - return `${timeString}`; + return `${timeString}`; } }, }, @@ -680,29 +680,6 @@
-
-
-
    - {#each intervals as interval} -
  • - -
  • - {/each} -
-
-
-
    +
      {#each intervals as interval}
    • {/each}