From acac314d27bfa3dbe27f1ebe6cc8cae278246af4 Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Mon, 26 Dec 2016 12:03:12 +0100 Subject: [PATCH] Improve input styling (it is still hacky) --- src/components/fields/ColorField.jsx | 2 +- src/config/input.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/fields/ColorField.jsx b/src/components/fields/ColorField.jsx index f3609af..a58a52b 100644 --- a/src/components/fields/ColorField.jsx +++ b/src/components/fields/ColorField.jsx @@ -90,7 +90,7 @@ class ColorField extends React.Component { ref="colorInput" onClick={this.togglePicker.bind(this)} style={{ - ...input.select, + ...input.input, ...this.props.style }} name={this.props.name} diff --git a/src/config/input.js b/src/config/input.js index 8619d81..7b4940f 100644 --- a/src/config/input.js +++ b/src/config/input.js @@ -38,8 +38,8 @@ const checkbox = { const select = { ...input, - width: '51%', - height: '2.3em', + width: '50%', + height: '2.15em', } export default {