jeziellago / compose-markdown

Markdown Text for Android Jetpack Compose 📋.
MIT License
508 stars 42 forks source link

Feature request: support overflow like Text() does #40

Closed charliepank closed 7 months ago

charliepank commented 1 year ago
Screenshot 2023-04-05 at 21 26 05

the Text() example understand the overflow option, but the Markdown() one doesn't

charliepank commented 1 year ago

Hey - thanks for picking this up. Do you need any further explanation?

jeziellago commented 1 year ago

Feel free to explain how this would be, to better help you

charliepank commented 1 year ago

If you look at my example, the overflow = TextOverflow.Ellipsis means that when the maxlines param is exceeded, it cuts off the excess and adds 3 dots to show there is more. If the user taps on the 3 dots, then the text is expanded so it can all be read, another tap collapses it back to the maxlines length again.

Jasperav commented 1 year ago

@jeziellago Is this on the roadmap? It would be useful to have. Tapping it to be expanded is not necessary