diff --git a/desktop/flipper-ui-core/src/chrome/ConnectivityLogs.tsx b/desktop/flipper-ui-core/src/chrome/ConnectivityLogs.tsx index fc93f82e0..64ef30716 100644 --- a/desktop/flipper-ui-core/src/chrome/ConnectivityLogs.tsx +++ b/desktop/flipper-ui-core/src/chrome/ConnectivityLogs.tsx @@ -26,6 +26,8 @@ import { } from 'flipper-common'; import {Button} from 'antd'; +const SIDEBAR_WIDTH = 400; + const rows = createDataSource([], { limit: 200000, persist: 'connectivity-logs', @@ -135,6 +137,12 @@ const Placeholder = styled(Layout.Container)({ fontSize: 18, }); +const PanelContainer = styled.div({ + width: SIDEBAR_WIDTH - 2 * 32, + whiteSpace: 'pre-wrap', + overflow: 'scroll', +}); + function isShellCommand( entry: ConnectionRecordEntry, ): entry is CommandRecordEntry { @@ -154,10 +162,10 @@ function Sidebar({selection}: {selection: undefined | ConnectionRecordEntry}) { {selection.description} , - {selection.stdout} + {selection.stdout} , - {selection.stderr} + {selection.stderr} , {selection.troubleshoot} @@ -212,7 +220,7 @@ export const ConnectivityLogs = () => { ); return ( - + dataSource={rows} columns={columns}