atmosphere explorer pds.ls
tool typescript atproto

reserve space for closing quote in OG card

juli.ee 82308919 98171897

verified
+2 -2
+2 -2
src/worker.js
··· 121 121 lines.push({ depth, segments: [...keySegs, { text: String(value), color: C.number }] }); 122 122 } else if (typeof value === "string") { 123 123 const display = value.replace(/\n/g, " "); 124 - const truncated = truncateToWidth(display, maxStrWidth); 124 + const truncated = truncateToWidth(display, maxStrWidth - 2); 125 125 lines.push({ 126 126 depth, 127 127 segments: [ ··· 221 221 for (const line of lines) { 222 222 for (const seg of line.segments) { 223 223 if (seg.color === C.string) { 224 - seg.text = truncateToWidth(seg.text, maxStrWidth); 224 + seg.text = truncateToWidth(seg.text, maxStrWidth - 2); 225 225 } 226 226 } 227 227 }