Skip to content

Implement text clamping and conditional "Show More" button for long descriptions #494

@thaya-rk

Description

@thaya-rk

Hi @hackerkid, I have found a minor issue in Mind-Expanding-Books

Currently, the "Show More" button is displayed for all book descriptions, even when the description is short and doesn't require expansion.I would like to use text clamping to limit the visible description to a few lines, and only show the button if the content exceeds this limit. Short descriptions will display fully without the button.

![image](https://github.com/user-attachments/assets/8e926b9a-9ddd

It ensures that the interface remains clean and improves the user experience by only showing the "Show More" button when it's actually needed.I would love to contribute and solve this issue if it aligns with the project's goals. Please let me know if I can work on this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions