Page MenuHomePhabricator

[web] Fix "See more..." button alignment in `ChatThreadListSeeMoreSidebars` component
ClosedPublic

Authored by abosh on Mar 29 2022, 10:26 AM.
Tags
None
Referenced Files
F3380117: D3541.id10794.diff
Wed, Nov 27, 9:10 PM
F3380094: D3541.id10792.diff
Wed, Nov 27, 9:03 PM
F3379779: D3541.diff
Wed, Nov 27, 7:05 PM
Unknown Object (File)
Sun, Nov 24, 4:33 AM
Unknown Object (File)
Sun, Nov 24, 4:24 AM
Unknown Object (File)
Sun, Nov 24, 4:11 AM
Unknown Object (File)
Sun, Nov 24, 3:48 AM
Unknown Object (File)
Sun, Nov 24, 3:47 AM

Details

Summary

Addressed issue where the "See more..." button wasn't aligned with the rest of the items in the ChatThreadList.

I saw that Ben and Ashoat mentioned the height of the sidebar item changing in the Linear issue. I'll defer to a later diff to refactor the styling of the "See more..." button if the height change of the sidebar affects anything there.

Before:

59d7bb67-9843-40b4-89b2-1741e00f41af.png (238×784 px, 32 KB)

After:

Screen Shot 2022-03-29 at 10.38.27 AM.png (696×530 px, 45 KB)

More context: https://linear.app/comm/issue/ENG-920/see-more-threads-button-doesnt-look-right-on-web

Test Plan

Ensured that thread list looked correct visually. Tested in Chrome/Safari at different breakpoints.

Diff Detail

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

Event Timeline

abosh added a reviewer: ashoat. abosh added 1 blocking reviewer(s): atul.Mar 29 2022, 10:29 AM
abosh retitled this revision from [web] Fix "See more..." button alignment in `ChatThreadListSeeMoreSidebars` component to [web] Fix "See more..." button alignment and font size in `ChatThreadListSeeMoreSidebars` component.Mar 29 2022, 10:41 AM
abosh edited the summary of this revision. (Show Details)
This revision was not accepted when it landed; it landed in state Needs Review.Mar 29 2022, 11:09 AM
This revision was automatically updated to reflect the committed changes.
atul requested changes to this revision.Mar 29 2022, 3:02 PM
atul added inline comments.
web/chat/chat-thread-list.css
155 ↗(On Diff #10792)

Let's skip this for now. From Linear (https://linear.app/comm/issue/ENG-920#comment-cdd44cbc):

We simply need to make the "See more…" match the design on the sidebar item, in all ways (alignment, height, padding, font size, etc.).

This revision now requires changes to proceed.Mar 29 2022, 3:02 PM
atul retitled this revision from [web] Fix "See more..." button alignment and font size in `ChatThreadListSeeMoreSidebars` component to [web] Fix "See more..." button alignment in `ChatThreadListSeeMoreSidebars` component.
atul edited the summary of this revision. (Show Details)
ashoat requested changes to this revision.Mar 30 2022, 10:18 PM
  1. In the screenshots it doesn't look like everything is the same between the "See more" item and the sidebar items. Is the font size the same? Is the spacing between items (padding / margin) really the same?
  2. I mentioned in the Linear task that Ben has a diff out that changes the height of sidebar items. We should make sure that we're building on top of that diff here... the intention is for the "See more" item to match the sidebar items, and this won't be true anymore if the sidebar items change
    • You can use arc patch Dsomething to pull in Ben's diff to your local environment
    • We should specify a dependency between this diff and that one on Phabricator ("Edit Related Revisions" or add "Depends on Dsomething" to the diff description)
    • We should make sure the screenshot etc. are based on top of Ben's diff
This revision now requires changes to proceed.Mar 30 2022, 10:18 PM

Rebase and made necessary changes to keep things aligned (had to increase padding-left to 66px):

Screen Shot 2022-04-01 at 4.53.33 PM.png (582×950 px, 33 KB)

Updated "See more..." button alignment to match @benschac's changes

9c2e3aa036cb99c4.png (690×928 px, 68 KB)

This revision is now accepted and ready to land.Apr 13 2022, 11:15 AM