From 7709483a76b20f4251598e823543f59b90c4d152 Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Fri, 25 Jul 2025 12:54:02 +0530 Subject: [PATCH] UI Alignment and Icon Styling Issue in Contact Card Design in Directory. --- .../Directory/CardViewDirectory.jsx | 4 +- .../Directory/ProfileContactDirectory.jsx | 78 ++++++++++--------- 2 files changed, 44 insertions(+), 38 deletions(-) diff --git a/src/components/Directory/CardViewDirectory.jsx b/src/components/Directory/CardViewDirectory.jsx index 0d955810..31b56c9b 100644 --- a/src/components/Directory/CardViewDirectory.jsx +++ b/src/components/Directory/CardViewDirectory.jsx @@ -107,13 +107,13 @@ const CardViewDirectory = ({ {/*
  • */} -
  • +
  • {contact.organization}
  • { if (IsActive) { diff --git a/src/components/Directory/ProfileContactDirectory.jsx b/src/components/Directory/ProfileContactDirectory.jsx index 41e1dadd..297c2904 100644 --- a/src/components/Directory/ProfileContactDirectory.jsx +++ b/src/components/Directory/ProfileContactDirectory.jsx @@ -47,7 +47,6 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => {
    {contact?.name} - {/* {contactProfile?.tags?.map((tag) => tag.name).join(" | ")} */} {contactProfile?.designation}
    @@ -56,23 +55,22 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => {
    {contactProfile?.contactEmails?.length > 0 && (
    -
    -

    Email:

    +
    + +

    Email :

      {contactProfile.contactEmails.map((email, idx) => (
    • - {email.emailAddress} handleCopy(email.emailAddress, idx)} @@ -86,14 +84,14 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => { {contactProfile?.contactPhones?.length > 0 && (
      -
      -

      Phone :

      +
      + +

      Phone :

        {contactProfile?.contactPhones.map((phone, idx) => (
      • - {phone.phoneNumber}
      • ))} @@ -104,12 +102,12 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => { {contactProfile?.createdAt && (
        -
        -

        Created :

        +
        + +

        Created :

      • - {moment(contactProfile.createdAt).format("MMMM, DD YYYY")}
      • @@ -117,11 +115,11 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => { )} {contactProfile?.address && (
        -
        -

        Location:

        +
        + +

        Location :

        - {contactProfile.address} @@ -133,12 +131,11 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => {
        {contactProfile?.organization && (
        -
        -

        Orgnization :

        +
        + +

        Organization :

        - - {contactProfile.organization} @@ -147,29 +144,29 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => { )} {contactProfile?.contactCategory && (
        -
        -

        Category :

        +
        + +

        Category :

        • - {contactProfile.contactCategory.name}
        )} - {contactProfile?.tags?.length > 0 && ( + {contactProfile?.tags?.length > 0 && (
        -
        -

        Tags :

        +
        + +

        Tags :

          {contactProfile.tags.map((tag, index) => (
        • - {tag.name}
        • ))} @@ -179,11 +176,13 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => { )} {contactProfile?.buckets?.length > 0 && ( -
          +
          {contactProfile?.contactEmails?.length > 0 && (
          -
          -

          Buckets :

          +
          +

          + Buckets : +

            @@ -200,12 +199,15 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => { )}
          )} +
          {contactProfile?.projects?.length > 0 && (
          -
          -

          Projects :

          +
          +

          + Projects : +

            @@ -220,9 +222,12 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => {
          )} +
          -
          -

          Description :

          +
          +

          + Description : +

          {displayText} @@ -237,6 +242,7 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => {
          +