SPIndicator icon indicating copy to clipboard operation
SPIndicator copied to clipboard

Multiline Message

Open nathan-ahn opened this issue 1 year ago • 2 comments

Feature Description Currently, the behavior for long messages is to truncate the text to fit on one line. I believe it would make more sense for the view to increase in height based on the dimensions of its contents to allow for more lines of the message text to show. In order to maintain backwards compatibility, I think the default number of lines for the message should be 1, and the container should expand when the number of lines is modified to be greater than 1 (and has multiple lines).

From what I can tell, areaHeight is currently constant and only used in one place. With some preliminary testing, it seems increasing this value here increase the size of the container, so I image one could just measure the height of the children instead of using areaHeight.

nathan-ahn avatar Mar 03 '24 23:03 nathan-ahn

The following would also be nice:

  1. Wider toasts
  2. Unlimited lines of text.

nandorojo avatar Mar 19 '24 14:03 nandorojo

Related issue from burnt, my library which relies on SPIndicator: https://github.com/nandorojo/burnt/issues/39

(PS thanks again for this great lib!)

nandorojo avatar Mar 19 '24 14:03 nandorojo