App Inspect rounded container

Summary: ^

Reviewed By: antonk52

Differential Revision: D47591057

fbshipit-source-id: 5f3f308fb252245ebe510dd98b4cbd7ea7c6e27e
This commit is contained in:
Lorenzo Blasa
2023-07-19 06:12:07 -07:00
committed by Facebook GitHub Bot
parent be9e645b53
commit 532f6ff1ee
2 changed files with 8 additions and 7 deletions

View File

@@ -20,7 +20,6 @@ import {Layout} from './Layout';
const SidebarInteractiveContainer = styled(Interactive)<InteractiveProps>({
display: 'flex',
flex: '0 1 1',
background: theme.backgroundDefault,
});
SidebarInteractiveContainer.displayName = 'Sidebar:SidebarInteractiveContainer';
@@ -201,7 +200,13 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
{gutter ? (
<GutterWrapper position={position}>
{/* Stop propagating mousedown events to prevent SidebarInteractiveContainer from resizing whenever a user starts selecting text in a child */}
<Layout.Container grow onMouseDown={(e) => e.stopPropagation()}>
<Layout.Container
style={{
background: theme.backgroundDefault,
borderRadius: theme.borderRadius,
}}
grow
onMouseDown={(e) => e.stopPropagation()}>
{children}
</Layout.Container>
</GutterWrapper>