Page MenuHomePhabricator

[web] Fix spacing regression in `MessageList` component
ClosedPublic

Authored by atul on Aug 9 2022, 8:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 5, 5:35 AM
Unknown Object (File)
Thu, Oct 24, 4:50 PM
Unknown Object (File)
Oct 9 2024, 6:43 PM
Unknown Object (File)
Oct 9 2024, 6:43 PM
Unknown Object (File)
Oct 9 2024, 6:34 PM
Unknown Object (File)
Oct 9 2024, 5:59 PM
Unknown Object (File)
Sep 27 2024, 9:09 AM
Unknown Object (File)
Sep 26 2024, 3:30 PM
Subscribers

Details

Summary

Context: https://linear.app/comm/issue/ENG-761/spacing-regression-between-conversations-in-messagelist

Previous approach: https://phab.comm.dev/D3537

There was a regression with the MessageList component where the spacing between the conversationHeader (AKA timestamp) and messages was removed.

Went through the git history of chat-message-list.css and checked to see if any commits changed the div.conversationHeader CSS selector and found D3067 to be relevant. Specifically, the diff removed the padding property (I believe unintentionally).

I reintroduced the padding property, but set vertical padding to 6px instead of 7px to maintain the relationship with font-size (which went from 14px to 12px).

Test Plan

Things look as expected:
Before:

Screen Shot 2022-08-09 at 11.59.15 AM.png (650×2 px, 380 KB)

After:

Screen Shot 2022-08-09 at 11.58.59 AM.png (650×2 px, 164 KB)

Messed around with the web app and looked around the code and couldn't find any side effects.

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Adding @ashoat as reviewer since he created the issue and has context from previous attempts to fix regression

atul requested review of this revision.Aug 9 2022, 9:11 AM

This looks better!!

In D3537 I was pushing for a thorough analysis of spacing changes, but that's pretty expensive. Let's land this, but we should probably wait on closing the Linear task until we can play around with things on prod. "Play around with things on prod" can hopefully serve as an alternative to a thorough analysis.

This revision is now accepted and ready to land.Aug 9 2022, 9:42 AM

Let's land this, but we should probably wait on closing the Linear task until we can play around with things on prod.

Sounds good, I'll land but defer closing the Linear task (could also close now and re-open if the issue persists, but I guess it keeps it top of mind if it remains open).