From d26e373e2e4101ba6c37aee88727fa24a4bbd1ec Mon Sep 17 00:00:00 2001 From: shuai Date: Sun, 28 Apr 2024 17:43:58 +0800 Subject: [PATCH] feat: tables add responsive attributes #917 --- ui/src/pages/Admin/Answers/index.tsx | 3 ++- ui/src/pages/Admin/Plugins/Installed/index.tsx | 4 ++-- ui/src/pages/Admin/Questions/index.tsx | 3 ++- ui/src/pages/Admin/Users/index.tsx | 9 ++++++--- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ui/src/pages/Admin/Answers/index.tsx b/ui/src/pages/Admin/Answers/index.tsx index ad66e3d5..42339263 100644 --- a/ui/src/pages/Admin/Answers/index.tsx +++ b/ui/src/pages/Admin/Answers/index.tsx @@ -76,7 +76,7 @@ const Answers: FC = () => { return ( <>

{t('page_title')}

-
+
{ type="search" placeholder={t('filter.placeholder')} style={{ width: '12.25rem' }} + className="mt-3 mt-sm-0" />
diff --git a/ui/src/pages/Admin/Plugins/Installed/index.tsx b/ui/src/pages/Admin/Plugins/Installed/index.tsx index 6df6d716..f1ced442 100644 --- a/ui/src/pages/Admin/Plugins/Installed/index.tsx +++ b/ui/src/pages/Admin/Plugins/Installed/index.tsx @@ -103,10 +103,10 @@ const Users: FC = () => { /> -
+
- + {curFilter !== 'deleted' ? ( diff --git a/ui/src/pages/Admin/Questions/index.tsx b/ui/src/pages/Admin/Questions/index.tsx index b2f4b38c..4a3c669a 100644 --- a/ui/src/pages/Admin/Questions/index.tsx +++ b/ui/src/pages/Admin/Questions/index.tsx @@ -74,7 +74,7 @@ const Questions: FC = () => { return ( <>

{t('page_title')}

-
+
{ placeholder={t('filter.placeholder')} onChange={handleFilter} style={{ width: '12.25rem' }} + className="mt-3 mt-sm-0" />
{t('name')}{t('name')} {t('version')} {t('status')}
diff --git a/ui/src/pages/Admin/Users/index.tsx b/ui/src/pages/Admin/Users/index.tsx index c119e864..c8f4fab4 100644 --- a/ui/src/pages/Admin/Users/index.tsx +++ b/ui/src/pages/Admin/Users/index.tsx @@ -165,7 +165,7 @@ const Users: FC = () => { return ( <>

{t('title')}

-
+
{ onChange={handleFilter} placeholder={t('filter.placeholder')} style={{ width: '12.25rem' }} + className="mt-3 mt-sm-0" />
-
+
- +
{t('name')} {t('reputation')}{t('email')} + {t('email')} + {t('created_at')}