mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
feat: added floating toolbar on text selection (#386)
style: re-designed create-issue modal
This commit is contained in:
parent
388d5b054a
commit
d8bf9b4c2a
@ -231,7 +231,7 @@ export const CreateUpdateIssueModal: React.FC<IssuesModalProps> = ({
|
|||||||
</Transition.Child>
|
</Transition.Child>
|
||||||
|
|
||||||
<div className="fixed inset-0 z-10 overflow-y-auto">
|
<div className="fixed inset-0 z-10 overflow-y-auto">
|
||||||
<div className="mt-10 flex items-start justify-center p-4 text-center sm:p-0 md:mt-20">
|
<div className="mt-10 flex min-h-full items-start justify-center p-4 text-center sm:p-0 md:mt-20">
|
||||||
<Transition.Child
|
<Transition.Child
|
||||||
as={React.Fragment}
|
as={React.Fragment}
|
||||||
enter="ease-out duration-300"
|
enter="ease-out duration-300"
|
||||||
|
@ -7,14 +7,27 @@ import {
|
|||||||
ToggleOrderedListButton,
|
ToggleOrderedListButton,
|
||||||
ToggleBulletListButton,
|
ToggleBulletListButton,
|
||||||
ToggleCodeButton,
|
ToggleCodeButton,
|
||||||
|
ToggleHeadingButton,
|
||||||
} from "@remirror/react";
|
} from "@remirror/react";
|
||||||
|
|
||||||
import HeadingControls from "./heading-controls";
|
|
||||||
|
|
||||||
export const CustomFloatingToolbar: React.FC = () => (
|
export const CustomFloatingToolbar: React.FC = () => (
|
||||||
<div className="z-[99999] flex items-center gap-y-2 divide-x rounded border bg-white p-1 px-0.5 shadow-md">
|
<div className="z-[99999] flex items-center gap-y-2 divide-x rounded border bg-white p-1 px-0.5 shadow-md">
|
||||||
<div className="flex items-center gap-x-1 px-2">
|
<div className="flex items-center gap-x-1 px-2">
|
||||||
<HeadingControls />
|
<ToggleHeadingButton
|
||||||
|
attrs={{
|
||||||
|
level: 1,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<ToggleHeadingButton
|
||||||
|
attrs={{
|
||||||
|
level: 2,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<ToggleHeadingButton
|
||||||
|
attrs={{
|
||||||
|
level: 3,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-x-1 px-2">
|
<div className="flex items-center gap-x-1 px-2">
|
||||||
<ToggleBoldButton />
|
<ToggleBoldButton />
|
||||||
|
Loading…
Reference in New Issue
Block a user