[openstreetmap/openstreetmap-website] Provide a truncated view of recent diaries (PR #5121)
Emin Kocan
notifications at github.com
Wed Aug 28 12:53:32 UTC 2024
I agree with @tomhughes' comment on #5103 that this approach is more standard for addressing #3887. Since we're using Markdown, we should account for edge cases where the entry starts with images, headings, code blocks, or tables, which may look unreadable when truncated. Instead of using max-height, alternative solution would be to extract the first paragraph or a fixed number of characters and append ellipses (...). This would ensure the preview remains readable and coherent without cutting off important elements.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5121#issuecomment-2315239495
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5121/c2315239495 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240828/67e3283f/attachment.htm>
More information about the rails-dev
mailing list