Skip to content

Commit

Permalink
Layout tweaks (#7150)
Browse files Browse the repository at this point in the history
* Reduce weight of right sidebar active feed

* ProfileFeedHeader tweaks

---------

Co-authored-by: Eric Bailey <[email protected]>
  • Loading branch information
pfrazee and estrattonbailey authored Dec 18, 2024
1 parent a2019ac commit ff02868
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
31 changes: 18 additions & 13 deletions src/screens/Profile/components/ProfileFeedHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import * as Dialog from '#/components/Dialog'
import {Divider} from '#/components/Divider'
import {useRichText} from '#/components/hooks/useRichText'
import {ArrowOutOfBox_Stroke2_Corner0_Rounded as Share} from '#/components/icons/ArrowOutOfBox'
import {ChevronBottom_Stroke2_Corner0_Rounded as ChevronDown} from '#/components/icons/Chevron'
import {CircleInfo_Stroke2_Corner0_Rounded as CircleInfo} from '#/components/icons/CircleInfo'
import {DotGrid_Stroke2_Corner0_Rounded as Ellipsis} from '#/components/icons/DotGrid'
import {
Heart2_Filled_Stroke2_Corner0_Rounded as HeartFilled,
Heart2_Stroke2_Corner0_Rounded as Heart,
Expand Down Expand Up @@ -91,7 +91,7 @@ export function ProfileFeedHeader({info}: {info: FeedSourceFeedInfo}) {
const t = useTheme()
const {_, i18n} = useLingui()
const {hasSession} = useSession()
const {gtPhone, gtMobile} = useBreakpoints()
const {gtMobile} = useBreakpoints()
const infoControl = Dialog.useDialogControl()
const playHaptic = useHaptics()

Expand Down Expand Up @@ -191,9 +191,8 @@ export function ProfileFeedHeader({info}: {info: FeedSourceFeedInfo}) {
style={[
a.justify_start,
{
paddingVertical: isWeb ? 4 : 6,
paddingHorizontal: 8,
paddingRight: 12,
paddingVertical: isWeb ? 2 : 4,
paddingRight: 8,
},
]}
onPress={() => {
Expand All @@ -207,10 +206,18 @@ export function ProfileFeedHeader({info}: {info: FeedSourceFeedInfo}) {
a.absolute,
a.inset_0,
a.rounded_sm,
a.transition_transform,
a.transition_all,
t.atoms.bg_contrast_25,
pressed && t.atoms.bg_contrast_50,
{
opacity: 0,
left: isWeb ? -2 : -4,
right: 0,
},
pressed && {
opacity: 1,
},
hovered && {
opacity: 1,
transform: [{scaleX: 1.01}, {scaleY: 1.1}],
},
]}
Expand All @@ -219,7 +226,7 @@ export function ProfileFeedHeader({info}: {info: FeedSourceFeedInfo}) {
<View
style={[a.flex_1, a.flex_row, a.align_center, a.gap_sm]}>
{info.avatar && (
<UserAvatar size={32} type="algo" avatar={info.avatar} />
<UserAvatar size={36} type="algo" avatar={info.avatar} />
)}

<View style={[a.flex_1]}>
Expand All @@ -237,10 +244,9 @@ export function ProfileFeedHeader({info}: {info: FeedSourceFeedInfo}) {
<Text
style={[
a.flex_shrink,
a.text_xs,
a.text_sm,
a.leading_snug,
t.atoms.text_contrast_medium,
gtPhone && a.text_sm,
]}
numberOfLines={1}>
{sanitizeHandle(info.creatorHandle, '@')}
Expand All @@ -256,10 +262,9 @@ export function ProfileFeedHeader({info}: {info: FeedSourceFeedInfo}) {
/>
<Text
style={[
a.text_xs,
a.text_sm,
a.leading_snug,
t.atoms.text_contrast_medium,
gtPhone && a.text_sm,
]}
numberOfLines={1}>
{formatCount(i18n, likeCount)}
Expand All @@ -268,7 +273,7 @@ export function ProfileFeedHeader({info}: {info: FeedSourceFeedInfo}) {
</View>
</View>

<ChevronDown
<Ellipsis
size="md"
fill={t.atoms.text_contrast_low.color}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/view/shell/desktop/Feeds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function DesktopFeeds() {
a.text_md,
a.leading_snug,
current
? [a.font_heavy, t.atoms.text]
? [a.font_bold, t.atoms.text]
: [t.atoms.text_contrast_medium],
]}
numberOfLines={1}>
Expand Down

0 comments on commit ff02868

Please sign in to comment.