global: replace most bps with ppm

This commit is contained in:
nym21
2026-07-20 18:28:12 +02:00
parent 3af673132a
commit 00984112d8
110 changed files with 3320 additions and 3220 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ export function formatDateAndAge(unixSeconds) {
const [unit, seconds] = RELATIVE_UNITS.find(([, duration]) => {
return absolute >= duration;
}) ?? RELATIVE_UNITS.at(-1);
}) ?? RELATIVE_UNITS[RELATIVE_UNITS.length - 1];
return `${date} · ${RELATIVE_TIME.format(Math.trunc(difference / seconds), unit)}`;
}
@@ -124,8 +124,8 @@ export function hitTest(geometry, x, y) {
/**
* @typedef {Object} SquareLayout
* @property {number} columns
* @property {SquareCell[]} resolvedCells
* @property {SquareCellLayout[]} layouts
* @property {readonly SquareCell[]} resolvedCells
* @property {readonly SquareCellLayout[]} layouts
*/
/**