Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐴] Adjust messages list styles #3945

Merged
merged 14 commits into from
May 10, 2024
Merged

[🐴] Adjust messages list styles #3945

merged 14 commits into from
May 10, 2024

Conversation

haileyok
Copy link
Contributor

@haileyok haileyok commented May 10, 2024

Why

without whitespace

I'm a little concerned about obscuring handles in DMs behind long display names. Since it's a more personal conversation, I think there's benefit in making sure that the user can actually see who it is that they are talking to.

Open to ideas on this of course!

Also removes the extra spinner states that were jumpy, and prevents the list from flickering on initial render on native.

Chat List

Screenshot 2024-05-09 at 10 52 25 PM

Screenshot 2024-05-09 at 11 20 30 PM

Avatar Alignment

Use the same size and (almost) alignment as feeds so there isn't a noticeable shift. I say almost because we really need to move away from the odd-number old style system - or convert the new one to odd numbers - so there's an ever-so-slight difference here. (Note, spacing between handle and message is a little higher here, but the image above is what you should go off of. Made a change)

In the feed

Screenshot 2024-05-09 at 10 39 12 PM

In the chat

Screenshot 2024-05-09 at 10 40 35 PM

Chat Header

Screenshot 2024-05-09 at 10 54 30 PM

Screenshot 2024-05-09 at 10 54 53 PM

Chat Loading

RocketSim_Recording_iPhone_15_Pro_6.1_2024-05-09_23.46.55.mp4

Copy link

render bot commented May 10, 2024

Copy link

github-actions bot commented May 10, 2024

Old size New size Diff
6.9 MB 6.9 MB -191 B (-0.00%)

@haileyok haileyok changed the title [🐴] Adjust messages list styles [🐴] Adjust messages list styles, remove extra spinner states from chat May 10, 2024
@haileyok haileyok changed the title [🐴] Adjust messages list styles, remove extra spinner states from chat [🐴] Adjust messages list styles May 10, 2024
@estrattonbailey estrattonbailey mentioned this pull request May 10, 2024
Copy link
Member

@estrattonbailey estrattonbailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Load state is real nice. I made a PR with my thoughts here #3949

(hovered || pressed) && t.atoms.bg_contrast_25,
index === 0 && a.border_t,
a.border_b,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I'm still kinda anti-border I think, but that's just me. Not sure it adds much

{maxWidth: '85%'},
web([a.leading_normal, {marginTop: -4}]),
]}>
<Text style={[t.atoms.text, a.font_bold, {fontSize: 17}]}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the general notion of trying to match the posts for consistency's sake, but let's not start adding custom font sizes to do so. We should use what's in ALF and update there if we need to in the future to stay consistent with new UI and avoid having type that's like 12, 14, 15, 16, 17 all right next to each other.

@@ -154,12 +142,19 @@ let Header = ({
)}
<View style={[a.align_center, a.gap_sm, a.flex_1]}>
{profile ? (
<>
<View style={[a.align_center]}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole header is getting a little cramped, we may want to consider doing a horizontal layout so it doesn't get too tall

src/screens/Messages/Conversation/index.tsx Outdated Show resolved Hide resolved
* Adjust sizing

* Consistent font size

* Adjust header
haileyok added 4 commits May 10, 2024 07:51
# Conflicts:
#	src/screens/Messages/Conversation/MessagesList.tsx
#	src/screens/Messages/Conversation/index.tsx
@haileyok haileyok merged commit e729647 into main May 10, 2024
6 checks passed
@haileyok haileyok deleted the hailey/list-tweaks-dms branch June 8, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants