Fix horizontal scroll in Databases plugin
Summary: changelog: make sure database plugin is horizontally scrollable fixes https://github.com/facebook/flipper/issues/2306 (assumed that'd be fixed by previous diff, but the plugin doesn't use the `DataTable` abstraction yet, athough it has a component with the same name :') Reviewed By: cekkaewnumchai Differential Revision: D33368215 fbshipit-source-id: f6a9b876ba3cd4aea7faa85b045a7614278e1c86
This commit is contained in:
committed by
Facebook GitHub Bot
parent
80bb372920
commit
c0fac38282
@@ -278,7 +278,7 @@ const QueryTable = React.memo(
|
|||||||
const columns = table.columns;
|
const columns = table.columns;
|
||||||
const rows = table.rows;
|
const rows = table.rows;
|
||||||
return (
|
return (
|
||||||
<Layout.Horizontal grow>
|
<Layout.Container grow>
|
||||||
<ManagedTable
|
<ManagedTable
|
||||||
floating={false}
|
floating={false}
|
||||||
multiline
|
multiline
|
||||||
@@ -304,7 +304,7 @@ const QueryTable = React.memo(
|
|||||||
columnValues={table.rows[table.highlightedRows[0]]}
|
columnValues={table.rows[table.highlightedRows[0]]}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Layout.Horizontal>
|
</Layout.Container>
|
||||||
);
|
);
|
||||||
} else if (query.id && query.id !== null) {
|
} else if (query.id && query.id !== null) {
|
||||||
return (
|
return (
|
||||||
@@ -744,7 +744,6 @@ export function Component() {
|
|||||||
</Toolbar>
|
</Toolbar>
|
||||||
</Layout.Container>
|
</Layout.Container>
|
||||||
) : null}
|
) : null}
|
||||||
<Layout.Horizontal grow>
|
|
||||||
<Layout.Container grow>
|
<Layout.Container grow>
|
||||||
{state.viewMode === 'data' ? (
|
{state.viewMode === 'data' ? (
|
||||||
<DataTable
|
<DataTable
|
||||||
@@ -777,7 +776,6 @@ export function Component() {
|
|||||||
<QueryHistory history={state.queryHistory} />
|
<QueryHistory history={state.queryHistory} />
|
||||||
) : null}
|
) : null}
|
||||||
</Layout.Container>
|
</Layout.Container>
|
||||||
</Layout.Horizontal>
|
|
||||||
<Toolbar position="bottom" style={{paddingLeft: 8}}>
|
<Toolbar position="bottom" style={{paddingLeft: 8}}>
|
||||||
<Layout.Horizontal grow>
|
<Layout.Horizontal grow>
|
||||||
{state.viewMode === 'SQL' && state.executionTime !== 0 ? (
|
{state.viewMode === 'SQL' && state.executionTime !== 0 ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user