diff --git a/src/components/Directory/CardViewDirectory.jsx b/src/components/Directory/CardViewDirectory.jsx
index 519d1b7f..9ac982c6 100644
--- a/src/components/Directory/CardViewDirectory.jsx
+++ b/src/components/Directory/CardViewDirectory.jsx
@@ -94,14 +94,15 @@ const CardViewDirectory = ({
-
- -
-
-
- -
- {contact.organization}
-
-
+
+ -
+
+
+ -
+ {contact.organization}
+
+
+
- {contact.contactEmails[0] && (
-
- -
-
-
- -
- {contact.contactEmails[0]?.emailAddress}
-
-
- )}
+ {contact.contactEmails[0] && (
+
+ -
+
+
+ -
+ {contact.contactEmails[0].emailAddress}
+
+
+)}
+
{contact.contactPhones[0] && (
diff --git a/src/components/Directory/ProfileContactDirectory.jsx b/src/components/Directory/ProfileContactDirectory.jsx
index 274b0d22..8494f2c6 100644
--- a/src/components/Directory/ProfileContactDirectory.jsx
+++ b/src/components/Directory/ProfileContactDirectory.jsx
@@ -58,23 +58,22 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => {
-
-
+
+
{contactProfile.contactEmails.map((email, idx) => (
- -
-
- {email.emailAddress}
+
-
+
+
+ {email.emailAddress}
+
handleCopy(email.emailAddress, idx)}
>
@@ -103,33 +102,28 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => {
)}
{contactProfile?.createdAt && (
-
+
-
-
+
-
{moment(contactProfile.createdAt).format("MMMM, DD YYYY")}
-
)}
-
{contactProfile?.address && (
-
-
- -
-
- {contactProfile?.address}
-
-
+
+
+
+ {contactProfile.address}
+
)}
@@ -141,13 +135,12 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => {
-
-
- -
-
- {contactProfile.organization}
-
-
+
+
+
+
+ {contactProfile.organization}
+
)}
diff --git a/src/components/Project/ProjectNav.jsx b/src/components/Project/ProjectNav.jsx
index 62a09d9b..444c6f03 100644
--- a/src/components/Project/ProjectNav.jsx
+++ b/src/components/Project/ProjectNav.jsx
@@ -76,7 +76,7 @@ const ProjectNav = ({ onPillClick, activePill }) => {
Image Gallary
- {DirAdmin || DireManager || DirUser && (
+ {(DirAdmin || DireManager || DirUser) && (
-
{
setTags((prev) => prev.slice(0, -1));
}
};
+ const handleInputKey = (e) => {
+ const key = e.key?.toLowerCase();
+
+ if ((key === "enter" || key === " " || e.code === "Space") && input.trim() !== "") {
+ e.preventDefault();
+ const existing = options.find(
+ (opt) => opt.name.toLowerCase() === input.trim().toLowerCase()
+ );
+ const newTag = existing
+ ? existing
+ : {
+ id: null,
+ name: input.trim(),
+ description: input.trim(),
+ };
+ addTag(newTag);
+ } else if ((key === "backspace" || e.code === "Backspace") && input === "") {
+ setTags((prev) => prev.slice(0, -1));
+ }
+};
+
const handleSuggestionClick = (suggestion) => {
addTag(suggestion);
@@ -122,6 +143,7 @@ useEffect(() => {
value={input}
onChange={(e) => setInput(e.target.value)}
onKeyDown={handleInputKeyDown}
+ onKeyUp={handleInputKey}
placeholder={placeholder}
style={{
border: "none",
diff --git a/src/components/common/TextEditor/Editor.css b/src/components/common/TextEditor/Editor.css
index a48c4638..7cf42a6a 100644
--- a/src/components/common/TextEditor/Editor.css
+++ b/src/components/common/TextEditor/Editor.css
@@ -1,5 +1,5 @@
.editor-wrapper {
- max-width: 800px;
+ max-width: 100%;
margin: 1px auto;
background: #fff;
diff --git a/src/pages/Directory/Directory.jsx b/src/pages/Directory/Directory.jsx
index ad3e1052..e09d158f 100644
--- a/src/pages/Directory/Directory.jsx
+++ b/src/pages/Directory/Directory.jsx
@@ -274,7 +274,7 @@ const handleDeleteContact = async (overrideId = null) => {
setOpen_contact(null);
setIsOpenModalNote(false);
}}
- size="lg"
+ size="xl"
>
{open_contact && (