From e0a2a3287b39660d85b03dd9ea993fb37667fa00 Mon Sep 17 00:00:00 2001 From: Evan Hahn Date: Thu, 9 Nov 2023 09:14:56 -0600 Subject: [PATCH] Show byte count in children view --- public/common/explorer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/common/explorer.js b/public/common/explorer.js index a28623b..6bcbb3a 100644 --- a/public/common/explorer.js +++ b/public/common/explorer.js @@ -1,6 +1,7 @@ // @ts-check import crel, { fragment } from "./crel.js"; +import pluralize from "./pluralize.js"; import formatBytes from "./formatBytes.js"; import allChildrenOf from "./allChildrenOf.js"; import * as nodePath from "./nodePath.js"; @@ -187,7 +188,7 @@ const traverse = (node, path, getNodeUi) => { crel( "span", { "class": "bytecount" }, - "TODO: X bytes", + pluralize(node.bytes.byteLength, "byte"), ), ), description,