Merge pull request 'Blue Highlight Under “Contacts” Tab Disappears When Switching View now its appear.' (#275) from Kartik_Bug#789 into Issues_July_4W

Reviewed-on: #275
Merged
This commit is contained in:
pramod.mahajan 2025-07-22 09:27:01 +00:00
commit 59c36d099b

View File

@ -257,7 +257,7 @@ const DirectoryPageHeader = ({
<ul className="nav nav-tabs mb-0" role="tablist"> <ul className="nav nav-tabs mb-0" role="tablist">
<li className="nav-item" role="presentation"> <li className="nav-item" role="presentation">
<button <button
className={`nav-link ${viewType === "notes" ? "active" : ""}`} className={`nav-link ${viewType === "notes" ? "active" : ""} fs-6`}
onClick={() => setViewType("notes")} onClick={() => setViewType("notes")}
type="button" type="button"
> >
@ -266,8 +266,9 @@ const DirectoryPageHeader = ({
</li> </li>
<li className="nav-item" role="presentation"> <li className="nav-item" role="presentation">
<button <button
className={`nav-link ${viewType === "card" ? "active" : ""}`} // Corrected: Apply 'active' if viewType is either 'card' or 'list'
onClick={() => setViewType("card")} className={`nav-link ${viewType === "card" || viewType === "list" ? "active" : ""} fs-6`}
onClick={() => setViewType("card")} // You might want to default to 'card' when switching to contacts
type="button" type="button"
> >
<i className="bx bx-user me-1"></i> Contacts <i className="bx bx-user me-1"></i> Contacts
@ -341,7 +342,7 @@ const DirectoryPageHeader = ({
</div> </div>
{/* Organization */} {/* Organization */}
<div style={{ maxHeight: "260px", overflowY: "auto",overflowX: "hidden", }}> <div style={{ maxHeight: "260px", overflowY: "auto", overflowX: "hidden", }}>
<div style={{ position: "sticky", top: 0, background: "#fff", zIndex: 1 }}> <div style={{ position: "sticky", top: 0, background: "#fff", zIndex: 1 }}>
<p className="text-muted mb-2 pt-2">Organization</p> <p className="text-muted mb-2 pt-2">Organization</p>
</div> </div>