Page MenuHomePhabricator

[web] Fix: Inbox spacing regression
ClosedPublic

Authored by jacek on Jul 28 2022, 3:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 27 2024, 6:16 PM
Unknown Object (File)
Oct 25 2024, 6:35 PM
Unknown Object (File)
Oct 4 2024, 10:38 PM
Unknown Object (File)
Oct 4 2024, 10:38 PM
Unknown Object (File)
Oct 4 2024, 10:38 PM
Unknown Object (File)
Oct 4 2024, 10:38 PM
Unknown Object (File)
Oct 4 2024, 10:37 PM
Unknown Object (File)
Aug 31 2024, 11:46 PM

Details

Summary

Fix for issue: https://linear.app/comm/issue/ENG-1473/inbox-spacing-regression-on-safari-on-web
I used CSS child selector to avoid modifying reusable Tabs component
Modified Tabs component CSS by making it fill the container.

Test Plan

Log in as a user that doesn't have any thread (or first message in the thread) with long name. The chat list should now fill the container.
Tested on Chrome, Safari and Firefox.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested changes to this revision.Jul 28 2022, 5:24 AM
tomek added inline comments.
web/chat/chat-tabs.css
8–15 ↗(On Diff #15042)

Targeting all the children sounds risky... maybe we can add style to .tabItem?

This revision now requires changes to proceed.Jul 28 2022, 5:24 AM
jacek added inline comments.
web/chat/chat-tabs.css
8–15 ↗(On Diff #15042)

The .tabItem class is not used now. The only child of div.container is Tabs component at the moment, which has its own styles (and I didn't want to change them, because it would affect all Tabs in the app).

Accepting to unblock a fix for this regression, but agree with @tomek's sentiment... wonder if there's way to do this without targetting all children of div.container

web/chat/chat-tabs.css
8–15 ↗(On Diff #15042)

What would happen if all tabs in the app have flex: 1? Would it be bad?

Updated Tabs component after discussion with Tomek

jacek edited the test plan for this revision. (Show Details)
jacek added inline comments.
web/chat/chat-tabs.css
8–15 ↗(On Diff #15042)

After discussing with Tomek we agreed, that having flex: 1 in all tabs in app is ok, and I didn't notice any problems with existing usages of tabs after the change.

This revision is now accepted and ready to land.Jul 28 2022, 6:35 AM
This revision was landed with ongoing or failed builds.Jul 28 2022, 6:43 AM
This revision was automatically updated to reflect the committed changes.