From 7f04db938996c5b5d429a8b9cb0839776a0f9b7f Mon Sep 17 00:00:00 2001 From: mrdrogdrog Date: Thu, 27 Aug 2020 10:48:29 +0200 Subject: [PATCH] Reduce space between editor toolbar buttons (#494) --- .../editor/editor-pane/editor-pane.scss | 4 + .../editor/editor-pane/tool-bar/tool-bar.tsx | 148 +++++++++--------- 2 files changed, 77 insertions(+), 75 deletions(-) diff --git a/src/components/editor/editor-pane/editor-pane.scss b/src/components/editor/editor-pane/editor-pane.scss index 43d0583e3..c9a928476 100644 --- a/src/components/editor/editor-pane/editor-pane.scss +++ b/src/components/editor/editor-pane/editor-pane.scss @@ -13,3 +13,7 @@ height: 100%; } +.btn-toolbar .btn { + padding: 0.1875rem 0.5rem; + min-width: 30px; +} diff --git a/src/components/editor/editor-pane/tool-bar/tool-bar.tsx b/src/components/editor/editor-pane/tool-bar/tool-bar.tsx index f2819fc72..c3b3309ad 100644 --- a/src/components/editor/editor-pane/tool-bar/tool-bar.tsx +++ b/src/components/editor/editor-pane/tool-bar/tool-bar.tsx @@ -1,5 +1,5 @@ import { Editor, EditorConfiguration } from 'codemirror' -import React, { Fragment } from 'react' +import React from 'react' import { Button, ButtonGroup, ButtonToolbar } from 'react-bootstrap' import { useTranslation } from 'react-i18next' import { ForkAwesomeIcon } from '../../../common/fork-awesome/fork-awesome-icon' @@ -44,79 +44,77 @@ export const ToolBar: React.FC = ({ editor, onPreferencesChange, e } return ( - - - - - - - - - - -   - - - - - - - - -   - - - - - -   - - - - - - -   - - - - - + + + + + + + + + +   + + + + + + + + +   + + + + + +   + + + + + + +   + + + + ) }