std-toast icon indicating copy to clipboard operation
std-toast copied to clipboard

`-stretch` values and mobile position behavior

Open jackbsteinberg opened this issue 6 years ago • 1 comments

In addition to all provided values of position (see #13) should there be top-stretch, center-stretch, or bottom-stretch values available to use when the developer wants to fit the toast to the entire width of the screen? Or should this stretching be done manually via CSS? Through some property other than position?

This stretching is the popular way of handling toasts on mobile, should the stretch be applied to toasts automatically when mobile platform is detected, or is that an option that should be left to the developer?

jackbsteinberg avatar Jun 21 '19 03:06 jackbsteinberg

When you say “mobile platform is detected”, are you really only concerned about Android and iOS? For the thing you want to achieve, would it be useful for me on my Surface Go in portrait mode with only a keyboard because I am wearing gloves?

Either way, this likely belongs in the CSS not as attributes. We tried that with <font size="6"> and it did not prove to be a good idea.

aardrian avatar Jul 04 '19 02:07 aardrian