fix(web): drop stale base64 overhead from max size display

This commit is contained in:
2026-09-12 14:59:16 +02:00
parent b0737030b2
commit b7c20d6f59
2 changed files with 6 additions and 7 deletions
+2 -4
View File
@@ -4,14 +4,12 @@
import { status } from '$lib/stores/status'
// Due to encoding overhead (~35%) with base64
// https://en.wikipedia.org/wiki/Base64
const overhead = 1 / 1.35
// Payload is raw bytes (msgpack + cipher), no base64 padding overhead.
</script>
<span>
{#if $status !== null}
{prettyBytes($status.max_size * overhead, { binary: true })}
{prettyBytes($status.max_size, { binary: true })}
{:else}
{$_('common.loading')}
{/if}