From 266023facffc497677421f7b797673196233d776 Mon Sep 17 00:00:00 2001 From: ingawei Date: Thu, 13 Oct 2022 22:02:46 -0700 Subject: [PATCH] no more indent on answer response --- web/components/comment-input.tsx | 27 ++++++----- web/components/contract/contract-tabs.tsx | 2 +- .../feed/feed-answer-comment-group.tsx | 48 +++++++++---------- web/public/custom-components/curve.tsx | 1 + 4 files changed, 40 insertions(+), 38 deletions(-) diff --git a/web/components/comment-input.tsx b/web/components/comment-input.tsx index d90e1343..634fb7f0 100644 --- a/web/components/comment-input.tsx +++ b/web/components/comment-input.tsx @@ -13,6 +13,7 @@ import { Avatar } from './avatar' import { TextEditor, useTextEditor } from './editor' import { CommentsAnswer } from './feed/feed-answer-comment-group' import { ContractCommentInput } from './feed/feed-comments' +import { Col } from './layout/col' import { Row } from './layout/row' import { LoadingIndicator } from './loading-indicator' @@ -93,17 +94,19 @@ export function AnswerCommentInput(props: { const color = getAnswerColor(answerResponse, answersArray) return ( <> -
- -
- -
- -
+ + +
+ +
+
+ +
+
-
+ ) } diff --git a/web/components/contract/contract-tabs.tsx b/web/components/contract/contract-tabs.tsx index 0965ea00..68fbb257 100644 --- a/web/components/contract/contract-tabs.tsx +++ b/web/components/contract/contract-tabs.tsx @@ -156,7 +156,7 @@ const CommentsTabContent = memo(function CommentsTabContent(props: { tips={tips} /> )} - {contract.outcomeType != 'FREE_RESPONSE' && + {contract.outcomeType !== 'FREE_RESPONSE' && topLevelComments.map((parent) => ( - + - -
+ {/* */} +
answered answer.text - ) + const answersArray = useChartAnswers(contract).map((answer) => answer.text) return ( <> {answerResponse && ( @@ -126,30 +124,30 @@ export function FreeResponseComments(props: { const color = getAnswerColor(answer, answersArray) return ( <> - - - - -
- + +
+
-
- + c.createdTime - )} - tips={tips} + color={color} />
+
+ c.createdTime + )} + tips={tips} + /> +
) })} diff --git a/web/public/custom-components/curve.tsx b/web/public/custom-components/curve.tsx index 5a7b3437..3a8b0067 100644 --- a/web/public/custom-components/curve.tsx +++ b/web/public/custom-components/curve.tsx @@ -12,6 +12,7 @@ export default function Curve({ fill="none" stroke={color} strokeWidth={strokeWidth} + transform="rotate(90)" >