Fixes: #19221 - Add truncate_middle filter for middle-ellipsis on long filenames #500

Closed
opened 2026-04-05 16:37:48 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @bctiemann on 1/22/2026

Fixes: #19221

Screenshot 2026-01-21 at 7 45 41 PM

This behavior is accomplished using a new filter, truncate_middle, which in this case is hard-coded to 16 characters overall length.

A CSS-based/front-end solution would probably be more optimal for responsiveness reasons, but it would be a lot more involved and awkward.

*Originally created by @bctiemann on 1/22/2026* ### Fixes: #19221 <img width="632" height="256" alt="Screenshot 2026-01-21 at 7 45 41 PM" src="https://github.com/user-attachments/assets/0bba62cb-3c81-4ec0-9f83-e84a67d12623" /> This behavior is accomplished using a new filter, `truncate_middle`, which in this case is hard-coded to 16 characters overall length. A CSS-based/front-end solution would probably be more optimal for responsiveness reasons, but it would be a lot more involved and awkward.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#500