Fix Sidebar Size

Summary: Set width of sidebar for `main` position in `MasterDetail`.

Reviewed By: mweststrate

Differential Revision: D41493698

fbshipit-source-id: a9f4804256a7ee46ed32f367e8b21ff57dd484e0
This commit is contained in:
Hamdullah Shah
2022-11-23 05:25:48 -08:00
committed by Facebook GitHub Bot
parent ae5eeb137d
commit dbf3108c36

View File

@@ -228,7 +228,7 @@ export function MasterDetail<T extends object>({
return ( return (
<Layout.Container grow> <Layout.Container grow>
{table} {table}
<DetailSidebar>{sidebar}</DetailSidebar> <DetailSidebar width={sidebarSize}>{sidebar}</DetailSidebar>
</Layout.Container> </Layout.Container>
); );
case 'right': case 'right':