From fc320ca1e45bb46a1a377debd9563b11b8f29c19 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Mon, 23 May 2022 16:09:40 -0600 Subject: [PATCH] Shrink avatar, paddding, gaps for mobile screens (#275) * Shrink avatar, paddding, gaps for mobile screens * Adjust padding, add arrow to input area * Padding and reply ui adjustments --- web/components/feed/feed-comments.tsx | 88 ++++++++++++++++++------- web/components/feed/feed-items.tsx | 8 +-- web/pages/[username]/[contractSlug].tsx | 2 +- 3 files changed, 69 insertions(+), 29 deletions(-) diff --git a/web/components/feed/feed-comments.tsx b/web/components/feed/feed-comments.tsx index dbaccde5..55bfe0f6 100644 --- a/web/components/feed/feed-comments.tsx +++ b/web/components/feed/feed-comments.tsx @@ -23,6 +23,7 @@ import { BetStatusText } from 'web/components/feed/feed-bets' import { Col } from 'web/components/layout/col' import { getProbability } from 'common/calculate' import { LoadingIndicator } from 'web/components/loading-indicator' +import { PaperAirplaneIcon } from '@heroicons/react/outline' export function FeedCommentThread(props: { contract: Contract @@ -53,13 +54,20 @@ export function FeedCommentThread(props: { if (showReply && inputRef) inputRef.focus() }, [inputRef, showReply]) return ( -
+
{commentsList.map((comment, commentIdx) => (
+ {/*draw a gray line from the comment to the left:*/} + {commentIdx != 0 && ( +