ubershmekel / redditp

Convert any reddit page to a presentation or slide show
https://redditp.com
MIT License
259 stars 101 forks source link

Let browsers know that the input in here is numeric #156

Closed nielsz closed 1 year ago

nielsz commented 1 year ago

When changing this value on mobile, it shows a regular keyboard. When using "input type=number" it shows a nice numeric keyboard on Mobile, but on desktop it changes into a weird unstyled text with up and down buttons, which takes up waay too much space. Adding an inputmode=numeric is a nice way to have the great "input type=text" behavior on desktop, but signals to the (mobile) browser that a number is expected, so a numeric keyboard is shown.

See https://css-tricks.com/finger-friendly-numerical-inputs-with-inputmode/

ubershmekel commented 1 year ago

Thanks!