Changes in Directory in Filter, removing unnessary gaps and changing color of HideEditor.

This commit is contained in:
Kartik sharma 2025-06-30 15:53:01 +05:30 committed by Vikas Nale
parent a96d3696bb
commit 9554caf25f
4 changed files with 531 additions and 513 deletions

View File

@ -115,7 +115,7 @@ const NoteCardDirectoryEditable = ({
</GlobalModel> </GlobalModel>
)} )}
<div <div
className="card p-1 shadow-sm border-1 mb-4 p-4 rounded" className="card shadow-sm border-1 mb-3 p-4 rounded"
style={{ style={{
width: "100%", width: "100%",
background: noteItem.isActive ? "#fff" : "#f8f6f6", background: noteItem.isActive ? "#fff" : "#f8f6f6",
@ -127,7 +127,7 @@ const NoteCardDirectoryEditable = ({
<div className="d-flex align-items-center"> <div className="d-flex align-items-center">
<Avatar <Avatar
size="xs" size="xxs"
firstName={noteItem?.createdBy?.firstName} firstName={noteItem?.createdBy?.firstName}
lastName={noteItem?.createdBy?.lastName} lastName={noteItem?.createdBy?.lastName}
className="m-0" className="m-0"
@ -136,7 +136,7 @@ const NoteCardDirectoryEditable = ({
<div className="d-flex ms-0 align-middle cursor-pointer" onClick={() =>contactProfile(noteItem.contactId)}> <div className="d-flex ms-0 align-middle cursor-pointer" onClick={() =>contactProfile(noteItem.contactId)}>
<span> <span>
<span className="fw-bold "> {noteItem?.contactName} </span> <span className="text-muted font-weight-normal"> <span className="fw-bold "> {noteItem?.contactName} </span> <span className="text-muted font-weight-normal">
( {noteItem?.organizationName}) ({noteItem?.organizationName})
</span> </span>
</span> </span>
@ -220,7 +220,7 @@ const NoteCardDirectoryEditable = ({
</> </>
) : ( ) : (
<div <div
className="px-10 pb-2 text-start" className="mx-4 px-10 text-start"
dangerouslySetInnerHTML={{ __html: noteItem.note }} dangerouslySetInnerHTML={{ __html: noteItem.note }}
/> />
)} )}

View File

@ -133,11 +133,11 @@ const NotesCardViewDirectory = ({ notes, setNotesForFilter, searchText, filterAp
style={{ marginBottom: '70px' }}> style={{ marginBottom: '70px' }}>
{/* Previous Button */} {/* Previous Button */}
<button <button
className="btn btn-sm rounded-circle border text-secondary" // Added text-secondary for lighter color, kept btn-sm for smaller size like in image className="btn btn-sm rounded-circle border text-secondary"
onClick={() => handlePageClick(Math.max(1, currentPage - 1))} onClick={() => handlePageClick(Math.max(1, currentPage - 1))}
disabled={currentPage === 1} disabled={currentPage === 1}
title="Previous" title="Previous"
style={{ width: "38px", height: "38px", padding: 0 }} // Ensure consistent size style={{ width: "30px", height: "30px", padding: 0, fontSize: "0.75rem" }} // Adjusted width, height, and font size
> >
« «
</button> </button>
@ -148,10 +148,8 @@ const NotesCardViewDirectory = ({ notes, setNotesForFilter, searchText, filterAp
return ( return (
<button <button
key={page} key={page}
// Changed btn-sm to just btn, adjusted class for active/inactive state backgrounds and text colors className={`btn rounded-circle border ${page === currentPage ? "btn-primary text-white" : "btn-light text-secondary"}`}
className={`btn rounded-circle border ${page === currentPage ? "btn-primary text-white" : "btn-light text-secondary" style={{ width: "30px", height: "30px", padding: 0, fontSize: "0.75rem", lineHeight: "1" }} // Adjusted width, height, and font size
}`}
style={{ width: "38px", height: "38px", padding: 0, fontSize: "1rem", lineHeight: "1" }} // Adjusted size and font for better fit
onClick={() => handlePageClick(page)} onClick={() => handlePageClick(page)}
> >
{page} {page}
@ -161,11 +159,11 @@ const NotesCardViewDirectory = ({ notes, setNotesForFilter, searchText, filterAp
{/* Next Button */} {/* Next Button */}
<button <button
className="btn btn-sm rounded-circle border text-secondary" // Added text-secondary for lighter color, kept btn-sm className="btn btn-sm rounded-circle border text-secondary"
onClick={() => handlePageClick(Math.min(totalPages, currentPage + 1))} onClick={() => handlePageClick(Math.min(totalPages, currentPage + 1))}
disabled={currentPage === totalPages} disabled={currentPage === totalPages}
title="Next" title="Next"
style={{ width: "38px", height: "38px", padding: 0 }} // Ensure consistent size style={{ width: "30px", height: "30px", padding: 0, fontSize: "0.75rem" }} // Adjusted width, height, and font size
> >
» »
</button> </button>

View File

@ -135,7 +135,7 @@ const NotesDirectory = ({
<div className="d-flex justify-content-end"> <div className="d-flex justify-content-end">
<span <span
className={`btn btn-sm ${addNote ? "btn-danger" : "btn-primary"}`} className={`btn btn-sm ${addNote ? "btn-secondary" : "btn-primary"}`}
onClick={() => setAddNote(!addNote)} onClick={() => setAddNote(!addNote)}
> >
{addNote ? "Hide Editor" : "Add a Note"} {addNote ? "Hide Editor" : "Add a Note"}

File diff suppressed because it is too large Load Diff