forked from github/plane
92f717962c
* fix: ellipsis added to issue title * feat: toolttip added * feat: assignees tooltip added * fix: build fix * fix: build fix * fix: build error * fix: minor bugs and ux improvements --------- Co-authored-by: Anmol Singh Bhatia <anmolsinghbhatia@caravel.tech>
36 lines
877 B
TypeScript
36 lines
877 B
TypeScript
// buttons
|
|
import {
|
|
ToggleBoldButton,
|
|
ToggleItalicButton,
|
|
ToggleUnderlineButton,
|
|
ToggleStrikeButton,
|
|
ToggleOrderedListButton,
|
|
ToggleBulletListButton,
|
|
RedoButton,
|
|
UndoButton,
|
|
} from "@remirror/react";
|
|
// headings
|
|
import HeadingControls from "./heading-controls";
|
|
|
|
export const RichTextToolbar: React.FC = () => (
|
|
<div className="flex items-center gap-y-2 divide-x">
|
|
<div className="flex items-center gap-x-1 px-2">
|
|
<RedoButton />
|
|
<UndoButton />
|
|
</div>
|
|
<div className="px-2">
|
|
<HeadingControls />
|
|
</div>
|
|
<div className="flex items-center gap-x-1 px-2">
|
|
<ToggleBoldButton />
|
|
<ToggleItalicButton />
|
|
<ToggleUnderlineButton />
|
|
<ToggleStrikeButton />
|
|
</div>
|
|
<div className="flex items-center gap-x-1 px-2">
|
|
<ToggleOrderedListButton />
|
|
<ToggleBulletListButton />
|
|
</div>
|
|
</div>
|
|
);
|