sqlpage / SQLPage

Fast SQL-only data application builder. Automatically build a UI on top of SQL queries.
https://sql-page.com
MIT License
1.66k stars 99 forks source link

Display regression on form input on smartphone #652

Closed DSMejantel closed 2 weeks ago

DSMejantel commented 1 month ago

Introduction

The two arrows to increase or decrease on the right side of a 'number type' input with step are no more visible on smartphone.

To Reproduce

This is what I can see on my computer : image

-- SELECT 'product_quantity[]' AS name,
    categorie || ' en pots de '||produits||' (Lot : '||lot||')' AS label,
    coalesce(reste-vendus,reste) ||' en stock. ' || printf("%.2f", prix) || ' € l''unité.' as description,
    'number' AS type,
    1 as step,
    0 as min,
    coalesce(reste-vendus,reste) as max,
    0 as value
FROM produits

Version information

Additional context

Add any other context about the problem here.

lovasoa commented 1 month ago

Hello ! Is this really a regression ? Did the same smartphone browser display arrows on number inputs in a previous version of sqlpage ?

I think it's just that mobile browser tend not to add arrows to number inputs, because they would be too small to touch anyways...

lovasoa commented 3 weeks ago

Hi @DSMejantel ! Any news on this ? Were you able to reproduce the different behaviors by running different versions of sqlpage and opening the pages on the same mobile browser ? If so, can you provide a simple .sql file for reproduction, and screenshots of the two behaviors ?

lovasoa commented 2 weeks ago

I'm closing this issue, I'll reopen it if we get a reproduction.