1
0
mirror of https://github.com/tooot-app/app synced 2025-01-31 02:37:13 +01:00
One liner fix, but took some time to find out...
This commit is contained in:
xmflsct 2023-02-02 13:54:28 +01:00
parent 2c96991ca0
commit 90c8e4cba8

View File

@ -1,3 +1,4 @@
const adaptiveScale = (size: number, factor: number = 0) => Math.round(size + size * (factor / 8))
const adaptiveScale = (size: number, factor: number = 0) =>
factor ? Math.round(size + size * (factor / 8)) : size
export { adaptiveScale }