naymspace / backpex

Backpex is a highly customizable administration panel for Phoenix LiveView applications.
https://backpex.live
MIT License
343 stars 16 forks source link

Range Filter UI improvement #363

Open IslandUsurper opened 2 weeks ago

IslandUsurper commented 2 weeks ago

On the demo site, you can filter by the number of Likes a Post has. You can put in one or two numbers to be the endpoints of the range of Likes to show. But the fields don't say which is which, and if someone is unfamiliar, they may not even know why there are two fields. Fortunately, the example links for "over 100" and "1–99" fill in the correct numbers so the behavior can be discovered that way.

Suggested labels:

Flo0807 commented 2 weeks ago

Hey, thanks a lot for your feedback 🙏

What are your thoughts on using inline labels (see https://daisyui.com/components/input/#text-input-with-text-label-inside)?

image

(@pehbehbeh)

IslandUsurper commented 2 weeks ago

Yeah, that would convey the intent very well.