Skip to content

Commit 23d57ce

Browse files
committed
make comment boxes smaller
1 parent 53db002 commit 23d57ce

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/Comment.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function Comment({comment, relay}: Props) {
2929
side: 'bottom',
3030
color: 'rgba(0,0,0,0.1)',
3131
}}
32-
pad="small"
32+
pad="xsmall"
3333
direction="row"
3434
align="center"
3535
gap="xsmall">
@@ -39,7 +39,7 @@ function Comment({comment, relay}: Props) {
3939
style={{borderRadius: '50%'}}
4040
src={idx(comment, _ => _.author.avatarUrl)}
4141
/>
42-
<Text size="small">
42+
<Text size="xsmall">
4343
<a href={idx(comment, _ => _.author.url)}>
4444
{idx(comment, _ => _.author.name) ||
4545
idx(comment, _ => _.author.login)}
@@ -50,10 +50,11 @@ function Comment({comment, relay}: Props) {
5050
</span>
5151
</Text>
5252
</Box>
53-
<Box pad="medium">
53+
<Box pad={{horizontal: 'small'}}>
5454
<MarkdownRenderer escapeHtml={true} source={source} />
5555
</Box>
5656
<ReactionBar
57+
pad="none"
5758
reactionGroups={comment.reactionGroups}
5859
relay={relay}
5960
subjectId={comment.id}

src/Post.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,12 @@ export const ReactionBar = ({
218218
reactionGroups,
219219
relay,
220220
subjectId,
221+
pad,
221222
}: {
222223
reactionGroups: *,
223224
relay: RelayProp,
224225
subjectId: string,
226+
pad?: string,
225227
}) => {
226228
const {error: notifyError} = React.useContext(NotificationContext);
227229
const [showReactionPopover, setShowReactionPopover] = React.useState(false);
@@ -234,7 +236,7 @@ export const ReactionBar = ({
234236

235237
return (
236238
<Box
237-
pad="xsmall"
239+
pad={pad || 'xsmall'}
238240
direction="row"
239241
wrap={true}
240242
border={{size: 'xsmall', side: 'top', color: 'rgba(0,0,0,0.1)'}}>

0 commit comments

Comments
 (0)