Page MenuHomePhabricator

[web] Move padding from `modal_body` to `tab_body` in `ThreadSettingsModal`
ClosedPublic

Authored by atul on May 5 2022, 7:08 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 2, 4:17 AM
Unknown Object (File)
Mon, Oct 28, 3:46 PM
Unknown Object (File)
Tue, Oct 22, 8:29 AM
Unknown Object (File)
Sun, Oct 13, 3:15 AM
Unknown Object (File)
Fri, Oct 11, 8:57 PM
Unknown Object (File)
Fri, Oct 11, 7:09 PM
Unknown Object (File)
Thu, Oct 10, 2:09 AM
Unknown Object (File)
Sep 24 2024, 1:41 AM

Details

Summary

We want each of the ThreadSettingsBlahTab components to have some padding so their contents aren't right against the edge of the surrounding Modal. However, we do want the Tabs to extend all the way to the edges and be closer to the Modal header.

We can't put these divs inside <Tabs.Container> because it expects its children to be typed a certain way. As a result we have to copy/paste the <div className={css.tab_body}> tag for every tab. We could move this padding to the children Tab components themselves, but setting the padding in ThreadSettingsModal seems like the right layer of abstraction to me.


Depends on D3929

Test Plan

Before:

Screen Shot 2022-05-05 at 10.00.34 AM.png (1×712 px, 74 KB)

After:

Screen Shot 2022-05-05 at 10.00.46 AM.png (1×712 px, 75 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul edited the summary of this revision. (Show Details)

reposition tab_body in stylesheet

atul published this revision for review.May 5 2022, 7:11 AM
This revision is now accepted and ready to land.May 5 2022, 8:57 AM