From f43eda1214fcd4b5a13e59d43e1abbe995d38039 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Sun, 26 Jan 2020 14:19:03 -0800 Subject: [PATCH] improve usability of selection styling --- components/Editor.js | 5 ++ components/SelectionEditor.js | 135 +++++++++++++++------------------- 2 files changed, 64 insertions(+), 76 deletions(-) diff --git a/components/Editor.js b/components/Editor.js index 8e9b2e5..aff1259 100644 --- a/components/Editor.js +++ b/components/Editor.js @@ -454,6 +454,11 @@ class Editor extends React.Component { .toolbar-second-row > :global(div:not(:last-of-type)) { margin-right: 0.5rem; } + + #style-editor-button { + display: flex; + align-items: center; + } `} diff --git a/components/SelectionEditor.js b/components/SelectionEditor.js index 3c161b6..6a13f4e 100644 --- a/components/SelectionEditor.js +++ b/components/SelectionEditor.js @@ -3,11 +3,8 @@ import { useKeyboardListener } from 'actionsack' import Popout from './Popout' import Button from './Button' import ColorPicker from './ColorPicker' -import ThemeIcon from './svg/Theme' import { COLORS } from '../lib/constants' -const styleEditorButtonStyle = { width: 28, maxWidth: 28, height: 28, borderRadius: '50%' } - function ModifierButton(props) { return ( -