jackbsteinberg / std-toast

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`-stretch` values and mobile position behavior

jackbsteinberg opened this issue · 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?

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.