From 1d2696228bf95dbfe30302fdb289a2b8e8777769 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Wed, 9 Jun 2021 09:47:39 +1000 Subject: [PATCH] Standardise settings select margins --- src/components/Select.js | 4 ++++ src/components/map/MapSettings.js | 12 +++++----- src/components/token/TokenSettings.js | 32 +++++++++++++-------------- 3 files changed, 25 insertions(+), 23 deletions(-) diff --git a/src/components/Select.js b/src/components/Select.js index 413df18..e56c418 100644 --- a/src/components/Select.js +++ b/src/components/Select.js @@ -53,6 +53,10 @@ function Select({ creatable, ...props }) { color: theme.colors.text, opacity: state.isDisabled ? 0.5 : 1, }), + container: (provided) => ({ + ...provided, + margin: "4px 0", + }), }} theme={(t) => ({ ...t, diff --git a/src/components/map/MapSettings.js b/src/components/map/MapSettings.js index 9eca0ba..fdfe0c4 100644 --- a/src/components/map/MapSettings.js +++ b/src/components/map/MapSettings.js @@ -185,8 +185,8 @@ function MapSettings({ sx={{ flexDirection: "column" }} > - - + + - + - + - - - - - onSettingsChange("defaultSize", parseFloat(e.target.value)) - } - disabled={tokenEmpty} - min={1} - my={1} - /> - - + + + + onSettingsChange("defaultSize", parseFloat(e.target.value)) + } + disabled={tokenEmpty} + min={1} + my={1} + /> +