From 84b48ff7e9c1868642f169d3b3f96cec65354c8a Mon Sep 17 00:00:00 2001 From: Anton Nikolaev Date: Thu, 29 Apr 2021 12:02:54 -0700 Subject: [PATCH] UI Conversion: Cleanup margins / paddings Summary: Cleaned up margins and paddings by removing hardcoded values and use constant sizes from "themes" instead. Changelog: Database plugin UI aligned with the new Flipper UI Reviewed By: mweststrate Differential Revision: D28094217 fbshipit-source-id: 6514b2f1ea7073ca658a86e49c2be029f054ddf0 --- desktop/plugins/public/databases/index.tsx | 70 ++++++++-------------- 1 file changed, 25 insertions(+), 45 deletions(-) diff --git a/desktop/plugins/public/databases/index.tsx b/desktop/plugins/public/databases/index.tsx index 9bce250e7..2fd83249f 100644 --- a/desktop/plugins/public/databases/index.tsx +++ b/desktop/plugins/public/databases/index.tsx @@ -41,6 +41,7 @@ import { Layout, useMemoize, Toolbar, + theme, } from 'flipper-plugin'; import { Select, @@ -84,7 +85,6 @@ const ErrorBar = styled.div({ lineHeight: '26px', textAlign: 'center', }); -const QueryHistoryManagedTable = styled(ManagedTable)({paddingLeft: 16}); const PageInfoContainer = styled(Layout.Horizontal)({alignItems: 'center'}); type DatabasesPluginState = { @@ -189,7 +189,7 @@ const QueryHistory = React.memo(({history}: {history: Array}) => { return ( - + - - Row id: {query.id} - + + Row id: {query.id} ); } else if (query.count && query.count !== null) { return ( - - - Rows affected: {query.count} - + + Rows affected: {query.count} ); } else { @@ -1144,7 +1140,7 @@ export function Component() { return ( - + @@ -1171,8 +1167,8 @@ export function Component() { {state.viewMode === 'data' || state.viewMode === 'structure' || state.viewMode === 'tableInfo' ? ( - - Database + + Database - Table + Table - { +