Cambios verificados (working tree previamente probado)

- src/lib/text.ts: helper truncate() reutilizable.
- SolicitudCart, DesbanearButton, vistas admin y endpoint solicitudes:
  ajustes usando el helper.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-09-09 09:04:38 -07:00
parent 3cccf758a8
commit 800ec60a53
7 changed files with 109 additions and 59 deletions
+1
View File
@@ -0,0 +1 @@
export const truncate = (s: string, n: number) => (s.length > n ? s.slice(0, n - 1) + '…' : s);