elk-zone / elk

A nimble Mastodon web client
https://elk.zone
MIT License
5.24k stars 535 forks source link

[Feature request] "Read more" button for long post #2860

Open lazzzis opened 2 months ago

lazzzis commented 2 months ago

Some mastodon instances allow a long post, whose character limit can be over 5000. Request to add a "read more" / "show more" button in this case.

test post

examples:

Screenshot 2024-05-02 at 5 44 51 PM Screenshot 2024-05-02 at 5 46 50 PM

Code references:

mastodon:

https://github.com/mastodon/mastodon/blob/4b2054ee57b41c304f85eab6236baebe0b732d95/app/javascript/mastodon/components/status_content.jsx#L135-L139

misskey:

https://github.com/misskey-dev/misskey/blob/c530a46e547791b22ecf12fe1b9e952f7df0a58c/packages/frontend/src/components/MkContainer.vue#L89-L94

stackblitz[bot] commented 2 months ago

Solve in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.