Files
growstuff/app/views/members/_location.html.haml
Daniel O'Connor 7c6508e387 Overflow of location badges (#3685)
* Swap to CSS for truncation

* Adjust styling on mobile

* Contain more

* Contain more

* All badges clip

* Adjust badges to truncate again

* Adjust badges to truncate again

* Apply suggestions from code review
2024-03-24 20:16:56 +10:30

8 lines
299 B
Plaintext

- if member.location.present?
= link_to place_path(member.location) do
%span.badge.badge-location{ title: member.location }
= icon 'fas', 'map-marker'
= truncate(member.location, length: 15, separator: ' ', omission: '... ')
- else
%span.badge.badge-location
unknown location