commitshow 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/render.js +8 -3
- package/package.json +1 -1
package/dist/lib/render.js
CHANGED
|
@@ -758,7 +758,11 @@ export function renderUpsell(githubUrl) {
|
|
|
758
758
|
: 'https://commit.show/submit';
|
|
759
759
|
const titleVisible = 'Walk-on · drop-in audit, no audition yet';
|
|
760
760
|
const headVisible = 'Audition to unlock:';
|
|
761
|
-
|
|
761
|
+
// CTA URL renders OUTSIDE the box (after boxBottom()) — the encoded
|
|
762
|
+
// submit URL is 60-70 chars on most repos, which busts the 54-char
|
|
763
|
+
// inside-box content width and visually shears the right border off.
|
|
764
|
+
// Pulling it below the box also lets terminals auto-link the full
|
|
765
|
+
// https:// URL without truncation.
|
|
762
766
|
lines.push(' ' + boxTop());
|
|
763
767
|
lines.push(' ' + boxRow(titleVisible.length, c.bold(c.gold('Walk-on')) + c.muted(' · ') + c.cream('drop-in audit, no audition yet')));
|
|
764
768
|
lines.push(' ' + boxBlank());
|
|
@@ -782,9 +786,10 @@ export function renderUpsell(githubUrl) {
|
|
|
782
786
|
const visible = `→ ${it.tag}${it.rest}`;
|
|
783
787
|
lines.push(' ' + boxRow(visible.length, it.tone('→ ') + c.cream(it.tag) + c.muted(it.rest)));
|
|
784
788
|
}
|
|
785
|
-
lines.push(' ' + boxBlank());
|
|
786
|
-
lines.push(' ' + boxRow(ctaVisible.length, c.gold(ctaVisible)));
|
|
787
789
|
lines.push(' ' + boxBottom());
|
|
790
|
+
// CTA outside the box · full URL stays clickable in modern terminals,
|
|
791
|
+
// and we don't have to truncate or shorten the slug.
|
|
792
|
+
lines.push(' ' + c.gold('→ ') + c.gold(submitUrl));
|
|
788
793
|
return lines.join('\n');
|
|
789
794
|
}
|
|
790
795
|
export function writeAuditJson(dir, json) {
|