facundoolano/feedi

Truncate entry content with CSS

开放

#72 创建于 2023年12月20日

 (0 条评论) (0 个反应) (0 位负责人)Python (30 个派生)github user discovery
bughelp wanted

仓库指标

星标
 (936 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南