diff --git a/src/components/@types/global.ts b/src/components/@types/global.ts
index 5dfd180e..a96bd3cd 100644
--- a/src/components/@types/global.ts
+++ b/src/components/@types/global.ts
@@ -48,3 +48,10 @@ export interface ScrollerStep {
*/
foregroundProps?: object;
}
+
+/** Datum type for data that goes into the Table component */
+type TableDatum = {
+ [key: string]: string | number | boolean | undefined | null;
+ searchStr?: string;
+};
+export type TableData = TableDatum[];
diff --git a/src/components/Table/Table.svelte b/src/components/Table/Table.svelte
index f6629eb0..10c068e9 100644
--- a/src/components/Table/Table.svelte
+++ b/src/components/Table/Table.svelte
@@ -1,7 +1,5 @@
@@ -234,7 +237,9 @@
truncateLength}
+ class:truncated={truncated &&
+ !showAll &&
+ searchableData.length > truncateLength}
>
@@ -310,7 +315,7 @@
{/if}
- {#if truncated && data.length > truncateLength}
+ {#if truncated && searchableData.length > truncateLength}