ISSUE-053 - To avoid messing with code that already works I dropped in a function-function that will convert pixel values to percent values. This fix adds a little bit of overhead, I guess, but it works without munging up any clean looking code.
This commit is contained in:
1 parent
b48579ac54
commit
a11f5b8eb6
5 files changed
+64
-40
No files matched your search
@@ -305,7 +305,7 @@ export function TimingTowerRow({
|
||||
3,
|
||||
3,
|
||||
);
|
||||
return `polygon(${coordinates.map(([x, y]) => `${x}px ${y}px`).join(", ")})`;
|
||||
return `polygon(${coordinates.map(([x, y]) => `${x}% ${y}%`).join(", ")})`;
|
||||
}),
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user