Skip to content

Commit

Permalink
Truncate long change titles.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Dec 15, 2024
1 parent 353a02e commit c9498c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/ChangeLink.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@
to="/org/{org.getPath()}/{id ? 'change' : 'changes'}/{id ?? 'new'}{role
? `?role=${role}`
: ''}{process ? `?process=${process}` : ''}"
>{change ? change.what : 'Suggest a change...'}</Link
>{change
? change.what.length > 100
? `${change.what.substring(0, 100)}...`
: change.what
: 'Suggest a change...'}</Link
>{/if}

0 comments on commit c9498c2

Please sign in to comment.