Skip to content

Commit 7fc7e5b

Browse files
committed
fix: use a non-linear coloring strategy for stability
Signed-off-by: Nick Mitchell <[email protected]>
1 parent 276607b commit 7fc7e5b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pdl-live-react/src/view/masonry/MasonryTile.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,15 @@ function renderValue({
187187
return (
188188
<Flex className="pdl-masonry-tile-stability-grid">
189189
{value.map((v, idx) => {
190-
const quartile = Math.round(v / 0.25)
190+
const quartile =
191+
v >= 0.925 ? 4 : v >= 0.7 ? 3 : v >= 0.6 ? 2 : v >= 0.5 ? 1 : 0
191192
const { i, j } = lookup[idx]
192193

193194
return (
194195
<Popover
195196
key={idx}
196197
hasAutoWidth
198+
maxWidth="450px"
197199
triggerAction="hover"
198200
className="pdl-masonry-tile-stability-popover"
199201
headerContent={detailHeader}

0 commit comments

Comments
 (0)