Improve styles

This commit is contained in:
Minseo Lee
2024-08-09 09:52:13 +09:00
parent e782db33dc
commit ccf98d2302
4 changed files with 45 additions and 37 deletions
+1 -1
View File
@@ -660,7 +660,7 @@ function ExpandedPostDetails({
a.flex_row, a.flex_row,
a.align_center, a.align_center,
a.flex_wrap, a.flex_wrap,
a.gap_sm, a.gap_xs,
s.mt2, s.mt2,
s.mb10, s.mb10,
]}> ]}>
+1 -6
View File
@@ -91,11 +91,7 @@ let PostMeta = (opts: PostMetaOpts): React.ReactNode => {
</Text> </Text>
</ProfileHoverCard> </ProfileHoverCard>
{!isAndroid && ( {!isAndroid && (
<Text <Text type="md" style={pal.textLight} accessible={false}>
type="md"
style={pal.textLight}
lineHeight={1.2}
accessible={false}>
&middot; &middot;
</Text> </Text>
)} )}
@@ -104,7 +100,6 @@ let PostMeta = (opts: PostMetaOpts): React.ReactNode => {
<TextLinkOnWebOnly <TextLinkOnWebOnly
type="md" type="md"
style={pal.textLight} style={pal.textLight}
lineHeight={1.2}
text={timeElapsed} text={timeElapsed}
accessibilityLabel={niceDate(opts.timestamp)} accessibilityLabel={niceDate(opts.timestamp)}
title={niceDate(opts.timestamp)} title={niceDate(opts.timestamp)}
+18 -6
View File
@@ -33,6 +33,7 @@ import {NavSignupCard} from '#/view/shell/NavSignupCard'
import {formatCountShortOnly} from 'view/com/util/numeric/format' import {formatCountShortOnly} from 'view/com/util/numeric/format'
import {Text} from 'view/com/util/text/Text' import {Text} from 'view/com/util/text/Text'
import {UserAvatar} from 'view/com/util/UserAvatar' import {UserAvatar} from 'view/com/util/UserAvatar'
import {atoms as a} from '#/alf'
import {useTheme as useAlfTheme} from '#/alf' import {useTheme as useAlfTheme} from '#/alf'
import {Button, ButtonIcon, ButtonText} from '#/components/Button' import {Button, ButtonIcon, ButtonText} from '#/components/Button'
import { import {
@@ -96,7 +97,15 @@ let DrawerProfileCard = ({
numberOfLines={1}> numberOfLines={1}>
@{account.handle} @{account.handle}
</Text> </Text>
<Text type="xl" style={[pal.textLight, styles.profileCardFollowers]}> <View
style={[
styles.profileCardFollowers,
a.gap_sm,
a.flex_row,
a.align_center,
a.flex_wrap,
]}>
<Text type="xl" style={pal.textLight}>
<Trans> <Trans>
<Text type="xl-medium" style={pal.text}> <Text type="xl-medium" style={pal.text}>
{formatCountShortOnly(profile?.followersCount ?? 0)} {formatCountShortOnly(profile?.followersCount ?? 0)}
@@ -106,8 +115,12 @@ let DrawerProfileCard = ({
one="follower" one="follower"
other="followers" other="followers"
/> />
</Trans>{' '} </Trans>
&middot;{' '} </Text>
<Text type="xl" style={pal.textLight}>
&middot;
</Text>
<Text type="xl" style={pal.textLight}>
<Trans> <Trans>
<Text type="xl-medium" style={pal.text}> <Text type="xl-medium" style={pal.text}>
{formatCountShortOnly(profile?.followsCount ?? 0)} {formatCountShortOnly(profile?.followsCount ?? 0)}
@@ -119,6 +132,7 @@ let DrawerProfileCard = ({
/> />
</Trans> </Trans>
</Text> </Text>
</View>
</TouchableOpacity> </TouchableOpacity>
) )
} }
@@ -610,7 +624,7 @@ const styles = StyleSheet.create({
backgroundColor: '#1B1919', backgroundColor: '#1B1919',
}, },
main: { main: {
paddingLeft: 20, paddingHorizontal: 20,
paddingTop: 20, paddingTop: 20,
}, },
smallSpacer: { smallSpacer: {
@@ -627,14 +641,12 @@ const styles = StyleSheet.create({
}, },
profileCardFollowers: { profileCardFollowers: {
marginTop: 16, marginTop: 16,
paddingRight: 10,
}, },
menuItem: { menuItem: {
flexDirection: 'row', flexDirection: 'row',
alignItems: 'center', alignItems: 'center',
paddingVertical: 16, paddingVertical: 16,
paddingRight: 10,
}, },
menuItemIconWrapper: { menuItemIconWrapper: {
width: 24, width: 24,
+5 -4
View File
@@ -11,6 +11,7 @@ import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries'
import {s} from 'lib/styles' import {s} from 'lib/styles'
import {TextLink} from 'view/com/util/Link' import {TextLink} from 'view/com/util/Link'
import {Text} from 'view/com/util/text/Text' import {Text} from 'view/com/util/text/Text'
import {atoms as a} from '#/alf'
import {ProgressGuideList} from '#/components/ProgressGuide/List' import {ProgressGuideList} from '#/components/ProgressGuide/List'
import {DesktopFeeds} from './Feeds' import {DesktopFeeds} from './Feeds'
import {DesktopSearch} from './Search' import {DesktopSearch} from './Search'
@@ -56,7 +57,7 @@ export function DesktopRightNav({routeName}: {routeName: string}) {
paddingTop: hasSession ? 0 : 18, paddingTop: hasSession ? 0 : 18,
}, },
]}> ]}>
<View style={[{flexWrap: 'wrap'}, s.flexRow]}> <View style={[{flexWrap: 'wrap'}, s.flexRow, a.gap_xs]}>
{hasSession && ( {hasSession && (
<> <>
<TextLink <TextLink
@@ -69,7 +70,7 @@ export function DesktopRightNav({routeName}: {routeName: string}) {
text={_(msg`Feedback`)} text={_(msg`Feedback`)}
/> />
<Text type="md" style={pal.textLight}> <Text type="md" style={pal.textLight}>
&nbsp;&middot;&nbsp; &middot;
</Text> </Text>
</> </>
)} )}
@@ -80,7 +81,7 @@ export function DesktopRightNav({routeName}: {routeName: string}) {
text={_(msg`Privacy`)} text={_(msg`Privacy`)}
/> />
<Text type="md" style={pal.textLight}> <Text type="md" style={pal.textLight}>
&nbsp;&middot;&nbsp; &middot;
</Text> </Text>
<TextLink <TextLink
type="md" type="md"
@@ -89,7 +90,7 @@ export function DesktopRightNav({routeName}: {routeName: string}) {
text={_(msg`Terms`)} text={_(msg`Terms`)}
/> />
<Text type="md" style={pal.textLight}> <Text type="md" style={pal.textLight}>
&nbsp;&middot;&nbsp; &middot;
</Text> </Text>
<TextLink <TextLink
type="md" type="md"