Tighten some spacing

This commit is contained in:
Eric Bailey
2025-05-27 21:02:21 -05:00
parent 1f73c05195
commit e939e41450
2 changed files with 15 additions and 17 deletions
@@ -58,7 +58,7 @@ export function ReadMore({
borderLeftWidth: 2, borderLeftWidth: 2,
borderBottomWidth: 2, borderBottomWidth: 2,
borderBottomLeftRadius: a.rounded_sm.borderRadius, borderBottomLeftRadius: a.rounded_sm.borderRadius,
height: 12, height: '50%',
width: isTreeView ? TREE_INDENT : 42 / 2 + 10, width: isTreeView ? TREE_INDENT : 42 / 2 + 10,
}, },
]} ]}
@@ -73,7 +73,7 @@ export function ReadMore({
'post', 'post',
item.nextAnchorUri.rkey, item.nextAnchorUri.rkey,
)} )}
style={[a.pt_2xs, a.pb_sm, a.gap_xs]}> style={[a.pt_sm, a.pb_md, a.gap_xs]}>
{({hovered, pressed}) => { {({hovered, pressed}) => {
return ( return (
<> <>
@@ -27,7 +27,7 @@ import {TextLink} from '#/view/com/util/Link'
import {PostCtrls} from '#/view/com/util/post-ctrls/PostCtrls' import {PostCtrls} from '#/view/com/util/post-ctrls/PostCtrls'
import {PostEmbeds, PostEmbedViewContext} from '#/view/com/util/post-embeds' import {PostEmbeds, PostEmbedViewContext} from '#/view/com/util/post-embeds'
import {PostMeta} from '#/view/com/util/PostMeta' import {PostMeta} from '#/view/com/util/PostMeta'
import {TREE_AVI_WIDTH,TREE_INDENT} from '#/screens/PostThread/const' import {TREE_AVI_WIDTH, TREE_INDENT} from '#/screens/PostThread/const'
import {atoms as a, useTheme} from '#/alf' import {atoms as a, useTheme} from '#/alf'
import {useInteractionState} from '#/components/hooks/useInteractionState' import {useInteractionState} from '#/components/hooks/useInteractionState'
import {Trash_Stroke2_Corner0_Rounded as TrashIcon} from '#/components/icons/Trash' import {Trash_Stroke2_Corner0_Rounded as TrashIcon} from '#/components/icons/Trash'
@@ -214,7 +214,7 @@ let PostThreadItemLoaded = ({
timestamp={post.indexedAt} timestamp={post.indexedAt}
postHref={postHref} postHref={postHref}
avatarSize={TREE_AVI_WIDTH} avatarSize={TREE_AVI_WIDTH}
style={[a.pb_xs]} style={[a.pb_2xs]}
showAvatar showAvatar
/> />
<View style={[a.flex_row]}> <View style={[a.flex_row]}>
@@ -234,14 +234,13 @@ let PostThreadItemLoaded = ({
)} )}
</View> </View>
<View style={[a.flex_1]}> <View style={[a.flex_1]}>
<LabelsOnMyPost post={post} style={[a.pb_xs]} /> <LabelsOnMyPost post={post} style={[a.pb_2xs]} />
<PostAlerts <PostAlerts
modui={moderation.ui('contentList')} modui={moderation.ui('contentList')}
style={[a.pb_2xs]} style={[a.pb_2xs]}
additionalCauses={additionalPostAlerts} additionalCauses={additionalPostAlerts}
/> />
{richText?.text ? ( {richText?.text ? (
<View style={[a.pb_2xs, a.pr_sm]}>
<RichText <RichText
enableTags enableTags
value={richText} value={richText}
@@ -252,7 +251,6 @@ let PostThreadItemLoaded = ({
authorHandle={post.author.handle} authorHandle={post.author.handle}
shouldProxyLinks={true} shouldProxyLinks={true}
/> />
</View>
) : undefined} ) : undefined}
{limitLines ? ( {limitLines ? (
<TextLink <TextLink