From 1ae90a0eea8686fd37f8de2eaddff5ea25a4dc41 Mon Sep 17 00:00:00 2001 From: fen Date: Fri, 14 Oct 2022 10:50:24 +0800 Subject: [PATCH 01/22] fix: font size style --- ui/src/pages/Questions/Detail/components/Question/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/pages/Questions/Detail/components/Question/index.tsx b/ui/src/pages/Questions/Detail/components/Question/index.tsx index 333c80d8..2f21865e 100644 --- a/ui/src/pages/Questions/Detail/components/Question/index.tsx +++ b/ui/src/pages/Questions/Detail/components/Question/index.tsx @@ -57,7 +57,7 @@ const Index: FC = ({ data, initPage, hasAnswer }) => { } return (
-

+

{data.title} {data.status === 2 From c2e48bd152463859de6ecb7d8dc757ebc9571fad Mon Sep 17 00:00:00 2001 From: robin Date: Fri, 14 Oct 2022 10:59:14 +0800 Subject: [PATCH 02/22] refactor: Responsive styling --- .../Comment/components/ActionBar/index.tsx | 25 ++++++++++++++++++- .../Comment/components/Form/index.tsx | 14 +++++++---- .../Comment/components/Reply/index.tsx | 8 +++--- ui/src/components/Comment/index.scss | 10 ++++++-- 4 files changed, 45 insertions(+), 12 deletions(-) diff --git a/ui/src/components/Comment/components/ActionBar/index.tsx b/ui/src/components/Comment/components/ActionBar/index.tsx index b8d75639..a801a6bb 100644 --- a/ui/src/components/Comment/components/ActionBar/index.tsx +++ b/ui/src/components/Comment/components/ActionBar/index.tsx @@ -1,5 +1,5 @@ import { memo } from 'react'; -import { Button } from 'react-bootstrap'; +import { Button, Dropdown } from 'react-bootstrap'; import { useTranslation } from 'react-i18next'; import { Link } from 'react-router-dom'; @@ -64,6 +64,29 @@ const ActionBar = ({ ); })}

+ + + + + + + {memberActions.map((action) => { + return ( + onAction(action)}> + {action.name} + + ); + })} + + ); }; diff --git a/ui/src/components/Comment/components/Form/index.tsx b/ui/src/components/Comment/components/Form/index.tsx index 7c7d9ebc..014dea46 100644 --- a/ui/src/components/Comment/components/Form/index.tsx +++ b/ui/src/components/Comment/components/Form/index.tsx @@ -31,7 +31,11 @@ const Form = ({ }; return ( -
+