This commit is contained in:
Kartik Sharma 2025-07-26 11:54:10 +05:30
parent c9eacc6bb0
commit 513783883b

View File

@ -280,7 +280,7 @@ const DirectoryPageHeader = ({
<hr className="my-0 mb-2" style={{ borderTop: "1px solid #dee2e6" }} /> <hr className="my-0 mb-2" style={{ borderTop: "1px solid #dee2e6" }} />
<div className="row mx-0 px-0 align-items-center mt-2"> <div className="row mx-0 px-0 align-items-center mt-2">
<div className="col-12 col-md-6 mb-2 px-1 d-flex align-items-center gap-2"> {/* REMOVED DUPLICATE LINE HERE */}
<div className="col-12 col-md-6 mb-2 px-1 d-flex align-items-center gap-2"> <div className="col-12 col-md-6 mb-2 px-1 d-flex align-items-center gap-2">
<input <input
@ -407,7 +407,6 @@ const DirectoryPageHeader = ({
<button <button
type="button" type="button"
className={`btn btn-sm p-1 ${viewType === "card" ? "btn-primary" : "btn-outline-primary"}`} className={`btn btn-sm p-1 ${viewType === "card" ? "btn-primary" : "btn-outline-primary"}`}
className={`btn btn-sm p-1 ${viewType === "card" ? "btn-primary" : "btn-outline-primary"}`}
onClick={() => setViewType("card")} onClick={() => setViewType("card")}
> >
<i className="bx bx-grid-alt"></i> <i className="bx bx-grid-alt"></i>
@ -415,11 +414,9 @@ const DirectoryPageHeader = ({
<button <button
type="button" type="button"
className={`btn btn-sm p-1 ${viewType === "list" ? "btn-primary" : "btn-outline-primary"}`} className={`btn btn-sm p-1 ${viewType === "list" ? "btn-primary" : "btn-outline-primary"}`}
className={`btn btn-sm p-1 ${viewType === "list" ? "btn-primary" : "btn-outline-primary"}`}
onClick={() => setViewType("list")} onClick={() => setViewType("list")}
> >
<i className="bx bx-list-ul"></i> <i className="bx bx-list-ul"></i>
<i className="bx bx-list-ul"></i>
</button> </button>
</div> </div>
@ -491,7 +488,7 @@ const DirectoryPageHeader = ({
<button <button
className="btn btn-xs btn-secondary" className="btn btn-xs btn-secondary"
onClick={(e) => { onClick={(e) => {
// e.stopPropagation(); // e.stopPropagation(); // This might be needed if the dropdown closes unexpectedly
clearFilter(); clearFilter();
}} }}
> >