aio-libs / aio-libs/aiohttp-admin
Mobile view
- 主要语言
- Python
- 星标
- 219
- 派生
- 45
- 平均合并
- 4 分钟
- 30 天内合并 PR
- 14
描述
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
贡献指南
评估
这个 Issue 还没有评估数据。