Skip to content

Commit 0d3a797

Browse files
committed
truncate to 256
Signed-off-by: bdjulbic <bdjulbic@foursquare.com>
1 parent 81a1520 commit 0d3a797

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/components/src/map/layer-hover-info.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,7 @@ interface RowProps {
6767
url?: string;
6868
}
6969

70-
/** Max length before truncation is applied */
71-
const TOOLTIP_VALUE_MAX_LENGTH = 60;
72-
/** Length to truncate to (including ellipsis) */
73-
const TOOLTIP_VALUE_TRUNCATE_LENGTH = 30;
70+
const TOOLTIP_VALUE_MAX_LENGTH = 1024;
7471

7572
const Row: React.FC<RowProps> = ({name, value, deltaValue, url}) => {
7673
// Set 'url' to 'value' if it looks like a url
@@ -80,7 +77,7 @@ const Row: React.FC<RowProps> = ({name, value, deltaValue, url}) => {
8077

8178
const displayValue =
8279
typeof value === 'string' && value.length > TOOLTIP_VALUE_MAX_LENGTH
83-
? truncate(value, {length: TOOLTIP_VALUE_TRUNCATE_LENGTH})
80+
? truncate(value, {length: TOOLTIP_VALUE_MAX_LENGTH})
8481
: value;
8582

8683
const asImg = /<img>/.test(name);

0 commit comments

Comments
 (0)