Skip to content

Commit

Permalink
fix: 🐛 Fixed button width and added user tag to member popup,
Browse files Browse the repository at this point in the history
  • Loading branch information
SupertigerDev committed Feb 1, 2023
1 parent 23555a7 commit 6469a24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/profile-pane/ProfilePane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ function PostsContainer (props: {user: UserDetails}) {
<div class={styles.bioArea}>
<FlexRow gap={5} style={{"margin-bottom": "10px"}}>
<Button margin={0} primary={currentPage() === 0} onClick={() => setCurrentPage(0)} label='Posts' />
<Button margin={0} primary={currentPage() === 1} onClick={() => setCurrentPage(1)} label={`Posts with replies (${postCount()})`} />
<Button margin={0} primary={currentPage() === 1} onClick={() => setCurrentPage(1)} label={`Posts and replies (${postCount()})`} />
<Button margin={0} primary={currentPage() === 2} onClick={() => setCurrentPage(2)} label={`Liked posts (${likeCount()})`} />
</FlexRow>
<Show when={props.user}>
Expand Down
10 changes: 6 additions & 4 deletions src/components/servers/drawer/members/ServerMembersDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ const MemberItem = (props: { member: ServerMember }) => {
createPortal(close => <MobileFlyout serverId={params.serverId} close={close} userId={user().id} />)
}


return (
<div onClick={onClick} onMouseEnter={onHover} onMouseLeave={() => setHoveringRect(undefined)} >
<Show when={hoveringRect()}><ProfileFlyout serverId={params.serverId} userId={user().id} left={hoveringRect()!.left} top={hoveringRect()!.top} /></Show>
Expand Down Expand Up @@ -243,7 +242,10 @@ const ProfileFlyout = (props: { close?(): void, userId: string, serverId: string
<FlyoutDetailsContainer>
<Avatar class={flyoutAvatarStyles} hexColor={user().hexColor} size={60} />
<FlyoutOtherDetailsContainer>
<Text>{user().username}</Text>
<span>
<Text>{user().username}</Text>
<Text color='rgba(255,255,255,0.6)'>:{user().tag}</Text>
</span>
<Text size={12} opacity={0.6}>{followingCount()} Following | {followersCount()} Followers</Text>
<UserPresence userId={props.userId} showOffline />
</FlyoutOtherDetailsContainer>
Expand All @@ -261,8 +263,8 @@ const ProfileFlyout = (props: { close?(): void, userId: string, serverId: string
<FlyoutTitle style={{ "margin-bottom": "5px" }} icon='chat' title='Latest Post' />
<PostItem post={latestPost()!} />
</Show>
<Link href={RouterEndpoints.PROFILE(props.userId)} style={{ "text-decoration": 'none' }}>
<Button onClick={props.close} iconName='person' label='View full profile' margin={0} class={css`margin-top: 5px;`} />
<Link href={RouterEndpoints.PROFILE(props.userId)} style={{ "text-decoration": 'none', display: 'flex' }}>
<Button onClick={props.close} iconName='person' label='View full profile' margin={0} class={css`margin-top: 5px;flex: 1;`} />
</Link>
</FlyoutContainer>
</Show>
Expand Down

0 comments on commit 6469a24

Please sign in to comment.