From f856672c2d05019d19480e30ed9801aef9720721 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Wed, 27 Sep 2023 21:34:49 -0700 Subject: [PATCH] Truncate and wrap output --- index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 935e2ea..9c6855b 100644 --- a/index.html +++ b/index.html @@ -75,6 +75,10 @@ cursor: pointer; } + output { + word-break: break-all; + } + footer { margin-block-start: auto; margin-block-end: 16px; @@ -137,7 +141,7 @@ const b64 = await textToGzipBase64(content); const url = `${location.origin}/#${b64}`; - e.target.elements['url'].innerHTML = `${url}`; + e.target.elements['url'].innerHTML = `${url.substring(0, 60)}${url.length > 60 ? '...' : ''}`; }); -- 2.47.3