fix(contacts): wrap long public keys in add contact previews

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MarekWo
2026-03-24 21:43:28 +01:00
parent 17b3c1c89c
commit 7b2f721d1d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2712,7 +2712,7 @@ function onQrCodeSuccess(decodedText) {
// Hex blob format
if (decodedText.startsWith('meshcore://') && decodedText.length > 20) {
resultDiv.innerHTML = '<strong>Scanned:</strong> <span class="font-monospace small">' +
resultDiv.innerHTML = '<strong>Scanned:</strong> <span class="font-monospace small" style="word-break: break-all;">' +
decodedText.substring(0, 60) + '...</span>';
resultDiv.classList.remove('d-none');
addBtn.classList.remove('d-none');
+2 -2
View File
@@ -55,7 +55,7 @@
<div id="uriPreview" class="alert alert-info d-none mb-3">
<strong>Preview:</strong>
<div><span class="text-muted">Name:</span> <span id="uriPreviewName"></span></div>
<div><span class="text-muted">Key:</span> <span id="uriPreviewKey" class="font-monospace small"></span></div>
<div><span class="text-muted">Key:</span> <span id="uriPreviewKey" class="font-monospace small" style="word-break: break-all;"></span></div>
<div><span class="text-muted">Type:</span> <span id="uriPreviewType"></span></div>
</div>
<button class="btn btn-success" id="addFromUriBtn" disabled>
@@ -86,7 +86,7 @@
<div id="qrResult" class="alert alert-success d-none mb-3">
<strong>Scanned:</strong>
<div><span class="text-muted">Name:</span> <span id="qrResultName"></span></div>
<div><span class="text-muted">Key:</span> <span id="qrResultKey" class="font-monospace small"></span></div>
<div><span class="text-muted">Key:</span> <span id="qrResultKey" class="font-monospace small" style="word-break: break-all;"></span></div>
<div><span class="text-muted">Type:</span> <span id="qrResultType"></span></div>
</div>
<div id="qrError" class="alert alert-danger d-none mb-3"></div>