aio-libs / aio-libs/aiohttp-admin

Mobile view

オープン
#665 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
219
フォーク
45
平均マージ
4分
マージ済み PR(30日)
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。