aio-libs / aio-libs/aiohttp-admin

Mobile view

Đang mở
#665 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
219
Fork
45
Merge trung bình
4 phút
Pull request đã merge (30 ngày)
14

Mô tả

We can use SimpleList (or better, SimpleListConfigurable) with useMediaQuery to provide a more mobile-friendly view:
https://marmelab.com/react-admin/ListTutorial.html#responsive-lists
https://marmelab.com/react-admin/SimpleList.html#using-simplelist-on-small-screens

Maybe use the first 3 display elements from the list view to use as the lines of text?

2 Possible approaches here:

- We could create components based on the fields (as we do in the existing Datagrid).
- We could use the templating system to allow users to specify a string (e.g. `"%{views} views, %{user_count} users"`).
https://marmelab.com/react-admin/SimpleList.html#primarytext

Maybe best if we can support both options?

-----

A followup task may be to add a sort button to the view as well:
https://marmelab.com/react-admin/SortButton.html

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.