diff --git a/public/assets/css/default.css b/public/assets/css/default.css index a0024e3d..32b8644b 100644 --- a/public/assets/css/default.css +++ b/public/assets/css/default.css @@ -199,3 +199,17 @@ .dropdown-menu[data-bs-popper] { inset-block-start: 100%; } + +.ql-toolbar.ql-snow { + border-top-left-radius: 5px; + border-top-right-radius: 5px; +} +.ql-container.ql-snow { + border-bottom-left-radius: 5px; + border-bottom-right-radius: 5px; + max-height: 200px; +} + +.ql-editor { + max-height: 200px; +} diff --git a/src/components/Directory/NotesDirectory.jsx b/src/components/Directory/NotesDirectory.jsx index b8128ef6..2b08b70e 100644 --- a/src/components/Directory/NotesDirectory.jsx +++ b/src/components/Directory/NotesDirectory.jsx @@ -101,6 +101,8 @@ const NotesDirectory = ({

Notes :

+
+
+ {!addNote && ( +
+ setAddNote(!addNote)} + > + {addNote ? "Hide Editor" : "Add Note"} + +
+ )}
{addNote && ( -
- - {errors.notes && ( -

{errors.note.message}

- )} - +
+ + {/*
+ setAddNote(!addNote)} + > + {addNote ? "Hide Editor" : "Add Note"} + +
*/} +
+ + {errors.notes && ( +

{errors.note.message}

+ )} + +
)} -
- setAddNote(!addNote)} - > - {addNote ? "Hide Editor" : "Add Note"} - -
+
{isLoading && (
diff --git a/src/components/common/TextEditor/Editor.jsx b/src/components/common/TextEditor/Editor.jsx index d44c9158..cb076ad3 100644 --- a/src/components/common/TextEditor/Editor.jsx +++ b/src/components/common/TextEditor/Editor.jsx @@ -33,7 +33,7 @@ const Editor = ({ ]; return ( -
+
{/* Left: Quill Format Buttons */}