Skip to content

Commit

Permalink
fix: remirror buttons (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaryan610 authored Feb 10, 2023
1 parent a403c0c commit af22dc9
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 161 deletions.
27 changes: 0 additions & 27 deletions apps/app/components/rich-text-editor/toolbar/bold.tsx

This file was deleted.

27 changes: 14 additions & 13 deletions apps/app/components/rich-text-editor/toolbar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// history
import { RedoButton } from "./redo";
import { UndoButton } from "./undo";
// formats
import { BoldButton } from "./bold";
import { ItalicButton } from "./italic";
import { UnderlineButton } from "./underline";
import { StrikeButton } from "./strike";
// buttons
import {
ToggleBoldButton,
ToggleItalicButton,
ToggleUnderlineButton,
ToggleStrikeButton,
RedoButton,
UndoButton,
} from "@remirror/react";
// headings
import HeadingControls from "./heading-controls";
// list
Expand All @@ -15,17 +16,17 @@ import { UnorderedListButton } from "./unordered-list";
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">
<UndoButton />
<RedoButton />
<UndoButton />
</div>
<div className="px-2">
<HeadingControls />
</div>
<div className="flex items-center gap-x-1 px-2">
<BoldButton />
<ItalicButton />
<UnderlineButton />
<StrikeButton />
<ToggleBoldButton />
<ToggleItalicButton />
<ToggleUnderlineButton />
<ToggleStrikeButton />
</div>
<div className="flex items-center gap-x-1 px-2">
<OrderedListButton />
Expand Down
28 changes: 0 additions & 28 deletions apps/app/components/rich-text-editor/toolbar/italic.tsx

This file was deleted.

18 changes: 0 additions & 18 deletions apps/app/components/rich-text-editor/toolbar/redo.tsx

This file was deleted.

26 changes: 0 additions & 26 deletions apps/app/components/rich-text-editor/toolbar/strike.tsx

This file was deleted.

28 changes: 0 additions & 28 deletions apps/app/components/rich-text-editor/toolbar/underline.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions apps/app/components/rich-text-editor/toolbar/undo.tsx

This file was deleted.

20 changes: 20 additions & 0 deletions apps/app/styles/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -419,3 +419,23 @@ img.ProseMirror-separator {
text-decoration: underline;
}
/* end link styling */

/* format buttons styling */
.MuiButtonBase-root {
border: none !important;
border-radius: 0.25rem !important;
padding: 0.25rem !important;
}

.MuiButtonBase-root:hover {
background-color: rgb(229 231 235);
}

.MuiButtonBase-root svg {
fill: #000 !important;
}

.MuiButtonBase-root.Mui-selected {
background-color: rgb(229 231 235) !important;
}
/* end format buttons styling */

1 comment on commit af22dc9

@vercel
Copy link

@vercel vercel bot commented on af22dc9 Feb 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

plane-dev – ./apps/app

plane-dev-caravel.vercel.app
plane-dev.vercel.app
plane-dev-git-develop-caravel.vercel.app

Please sign in to comment.