align center post meta in threaded (#3615)
* align center post meta in threaded * put `displayNameStyle` in correct place * maybe? * with mobile padding too?zio/stable
parent
c91f065be5
commit
f709fbcbdd
|
@ -27,6 +27,7 @@ import {sanitizeHandle} from 'lib/strings/handles'
|
||||||
import {countLines, pluralize} from 'lib/strings/helpers'
|
import {countLines, pluralize} from 'lib/strings/helpers'
|
||||||
import {niceDate} from 'lib/strings/time'
|
import {niceDate} from 'lib/strings/time'
|
||||||
import {s} from 'lib/styles'
|
import {s} from 'lib/styles'
|
||||||
|
import {isWeb} from 'platform/detection'
|
||||||
import {useSession} from 'state/session'
|
import {useSession} from 'state/session'
|
||||||
import {PostThreadFollowBtn} from 'view/com/post-thread/PostThreadFollowBtn'
|
import {PostThreadFollowBtn} from 'view/com/post-thread/PostThreadFollowBtn'
|
||||||
import {atoms as a} from '#/alf'
|
import {atoms as a} from '#/alf'
|
||||||
|
@ -478,7 +479,12 @@ let PostThreadItemLoaded = ({
|
||||||
avatarSize={28}
|
avatarSize={28}
|
||||||
displayNameType="md-bold"
|
displayNameType="md-bold"
|
||||||
displayNameStyle={isThreadedChild && s.ml2}
|
displayNameStyle={isThreadedChild && s.ml2}
|
||||||
style={isThreadedChild && s.mb2}
|
style={
|
||||||
|
isThreadedChild && {
|
||||||
|
alignItems: 'center',
|
||||||
|
paddingBottom: isWeb ? 5 : 2,
|
||||||
|
}
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
<LabelsOnMyPost post={post} />
|
<LabelsOnMyPost post={post} />
|
||||||
<PostAlerts
|
<PostAlerts
|
||||||
|
|
|
@ -54,10 +54,12 @@ let PostMeta = (opts: PostMetaOpts): React.ReactNode => {
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
<Text numberOfLines={1} style={[styles.maxWidth, pal.textLight]}>
|
<Text
|
||||||
|
numberOfLines={1}
|
||||||
|
style={[styles.maxWidth, pal.textLight, opts.displayNameStyle]}>
|
||||||
<TextLinkOnWebOnly
|
<TextLinkOnWebOnly
|
||||||
type={opts.displayNameType || 'lg-bold'}
|
type={opts.displayNameType || 'lg-bold'}
|
||||||
style={[pal.text, opts.displayNameStyle]}
|
style={[pal.text]}
|
||||||
lineHeight={1.2}
|
lineHeight={1.2}
|
||||||
disableMismatchWarning
|
disableMismatchWarning
|
||||||
text={
|
text={
|
||||||
|
|
Loading…
Reference in New Issue