facundoolano/feedi

Truncate entry content with CSS

Aberta

#72 aberto em 20 de dez. de 2023

 (0 comentário) (0 reação) (0 responsável)Python (30 forks)github user discovery
bughelp wanted

Métricas do repositório

Stars
 (936 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

I currently have a couple of template filters to truncate the entry content (full/text view and compact/pinned view) in Python. This is because I couldn't get the HTML and CSS to show ellipsis on overflow. Ideally containers should be fixed in size (e.g. the height of the image preview) and the CSS would adjust the text to take advantage of the available space, instead of the current solution which isn't consistent and leaves some blanks.

Guia do colaborador