From efefdeb0f083b5508ddf1e04e392caaba045eab1 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Tue, 22 Jul 2025 01:15:39 +0200 Subject: [PATCH] Use proper grid for wallet debug info (#2305) --- wallets/client/components/debug.js | 62 +++++++++++------------------- 1 file changed, 22 insertions(+), 40 deletions(-) diff --git a/wallets/client/components/debug.js b/wallets/client/components/debug.js index d15dbbc9..c41fe17b 100644 --- a/wallets/client/components/debug.js +++ b/wallets/client/components/debug.js @@ -34,48 +34,30 @@ export function WalletDebugSettings () { }, []) return ( -
-
-
persistent storage:
-
{persistent !== null ? persistent?.toString() : 'unknown'}
+
+
persistent storage:
+
{persistent !== null ? persistent?.toString() : 'unknown'}
+
storage quota:
+
{quota !== null ? formatBytes(quota) : 'unknown'}
+
storage usage:
+
{usage !== null ? formatBytes(usage) : 'unknown'}
+
storage remaining:
+
{usage !== null && quota !== null ? formatBytes(quota - usage) : 'unknown'}
+
device key hash:
+
{localKeyHash ? shortHash(localKeyHash) : 'unknown'}
+
server key hash:
+
{remoteKeyHash ? shortHash(remoteKeyHash) : 'unknown'}
+
device key update:
+
+ {localKeyUpdatedAt ? `${timeSince(localKeyUpdatedAt)} ago` : 'unknown'}
-
-
storage quota:
-
{quota !== null ? formatBytes(quota) : 'unknown'}
+
server key update:
+
+ {remoteKeyHashUpdatedAt ? `${timeSince(new Date(remoteKeyHashUpdatedAt).getTime())} ago` : 'unknown'}
-
-
storage usage:
-
{usage !== null ? formatBytes(usage) : 'unknown'}
-
-
-
storage remaining:
-
{usage !== null && quota !== null ? formatBytes(quota - usage) : 'unknown'}
-
-
-
device key hash:
-
{localKeyHash ? shortHash(localKeyHash) : 'unknown'}
-
-
-
server key hash:
-
{remoteKeyHash ? shortHash(remoteKeyHash) : 'unknown'}
-
-
-
device key update:
-
- {localKeyUpdatedAt ? `${timeSince(localKeyUpdatedAt)} ago` : 'unknown'} -
-
-
-
server key update:
-
- {remoteKeyHashUpdatedAt ? `${timeSince(new Date(remoteKeyHashUpdatedAt).getTime())} ago` : 'unknown'} -
-
-
-
wallet update:
-
- {walletsUpdatedAt ? `${timeSince(new Date(walletsUpdatedAt).getTime())} ago` : 'unknown'} -
+
wallet update:
+
+ {walletsUpdatedAt ? `${timeSince(new Date(walletsUpdatedAt).getTime())} ago` : 'unknown'}
)