Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Added separator before expand toolbar button
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Jul 1, 2020
1 parent bffcceb commit 6667d4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/editor/components/Toolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ReactEditor, useSlate } from 'slate-react';
import { Editor, Range } from 'slate';
import { Portal } from 'react-portal';

import Separator from './Separator';
import ToolbarButton from './ToolbarButton';
import BasicToolbar from './BasicToolbar';

Expand Down Expand Up @@ -42,6 +43,7 @@ const Toolbar = ({ mainToolbarShown, onToggle, children }) => {
<Portal>
<BasicToolbar className="slate-inline-toolbar" ref={ref}>
{children}
<Separator />
<ToolbarButton
onMouseDown={(event) => {
onToggle();
Expand Down

0 comments on commit 6667d4a

Please sign in to comment.