diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 63c0b954..1e5b8123 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -86,22 +86,6 @@ onMount( async() => { - -let charNumber = 30; - - - - -$: { - if($screenWidth < 640) - { - charNumber = 10; - } - else { - charNumber =30; - } -} - @@ -431,7 +415,7 @@ $: {
| Name | -- Transaction Date + | + Transaction | - Disclosure Date + Traded | -- Amount + | + Filed | -Type | ||
|---|---|---|---|---|---|---|---|---|
|
-
-
+
+
-
+
{item?.ticker?.replace('_',' ')}
- {item?.name}
+ {item?.name?.length > 20 ? item?.name?.slice(0,20)+'...' : item?.name}
|
+
+
+
+
+ {#if item?.type === 'Bought'}
+ Purchase
+ {:else if item?.type === 'Sold'}
+ Sale
+ {:else if item?.type === 'Exchange'}
+ Exchange
+ {/if}
+
+
+ {item?.amount}
+
+
+ |
{new Date(item?.transactionDate)?.toLocaleString('en-US', { month: 'short', day: 'numeric', year: 'numeric', daySuffix: '2-digit' })} @@ -474,19 +490,6 @@ onMount(async () => { | {new Date(item?.disclosureDate)?.toLocaleString('en-US', { month: 'short', day: 'numeric', year: 'numeric', daySuffix: '2-digit' })} | - -- {item?.amount} - | -- {#if item?.type === 'Bought'} - Bought - {:else if item?.type === 'Sold'} - Sold - {:else if item?.type === 'Exchange'} - Exchange - {/if} - |
| Name | -Transaction Date | -Disclosure Date | -Amount | -Type | ++ Name + | ++ Transaction + | ++ Traded + | ++ Filed + |
|---|---|---|---|---|---|---|---|---|
|
-
+
+ |
-
{item?.ticker?.replace('_',' ')}
- {item?.name?.length < charNumber ? item?.name : item?.name?.slice(0,charNumber)+'...'}
+ {item?.name?.length > 15 ? item?.name?.slice(0,15)+'...' : item?.name}
+ |
+ |
+
+
+
+ {#if item?.type === 'Bought'}
+ Purchase
+ {:else if item?.type === 'Sold'}
+ Sale
+ {:else if item?.type === 'Exchange'}
+ Exchange
+ {/if}
+
+
+ {item?.amount}
+
+
+
{new Date(item?.transactionDate)?.toLocaleString('en-US', { month: 'short', day: 'numeric', year: 'numeric', daySuffix: '2-digit' })}
|
-
+ |
{new Date(item?.disclosureDate)?.toLocaleString('en-US', { month: 'short', day: 'numeric', year: 'numeric', daySuffix: '2-digit' })}
- |
-
-
- {item?.amount}
- |
-
- {#if item?.type === 'Bought'}
- Bought
- {:else if item?.type === 'Sold'}
- Sold
- {:else if item?.type === 'Exchange'}
- Exchange
- {/if}
- |
+ |