Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 49ed2554a03cbbcf58187cdf002c4aa50b345b6a
parent 02cd43d832cc8d8442063363fe38b23e1dce341f
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sat, 31 Oct 2026 13:17:46 -0400

umtool: a clip export under 1 MB reads in kB

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mumtool/components/projects/ClipExport.tsx | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/umtool/components/projects/ClipExport.tsx b/umtool/components/projects/ClipExport.tsx @@ -51,7 +51,7 @@ export type ClipExportHandle = { dismiss: () => void; }; -const mb = (n: number) => `${(n / 1e6).toFixed(n < 1e7 ? 1 : 0)} MB`; +const mb = (n: number) => (n < 1e6 ? `${Math.max(1, Math.round(n / 1e3))} kB` : `${(n / 1e6).toFixed(n < 1e7 ? 1 : 0)} MB`); /** One project's (or take's) export: what is being made, what was, and Open folder. */ export function useClipExport(project: string, take: string | null = null): ClipExportHandle {