Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lazzzis opened this issue May 3, 2024 · 3 comments · May be fixed by #3086
Open

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

lazzzis opened this issue May 3, 2024 · 3 comments · May be fixed by #3086
Assignees
Labels
c: feature Request for new feature c: parity Parity with Mastodon web app

Comments

@lazzzis
Copy link
Contributor

lazzzis commented May 3, 2024

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

@lazzzis lazzzis added the s: pending triage Pending Triage label May 3, 2024
Copy link

stackblitz bot commented May 3, 2024

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

@shuuji3 shuuji3 added c: feature Request for new feature and removed s: pending triage Pending Triage labels May 8, 2024
@ayoayco ayoayco added the c: parity Parity with Mastodon web app label Dec 8, 2024
@ayoayco ayoayco self-assigned this Dec 13, 2024
@ayoayco ayoayco linked a pull request Dec 13, 2024 that will close this issue
@shuuji3
Copy link
Member

shuuji3 commented Jan 23, 2025

There was a similar feature request on #3149, which has two screenshots from custom styles on #3149. That may help to refine the draft PR #3086.

@ayoayco
Copy link
Member

ayoayco commented Jan 23, 2025

Thanks for the links @shuuji3 — will check! I’m trying to implement this with CSS only for performance, was having a difficulty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: feature Request for new feature c: parity Parity with Mastodon web app
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants