Compare commits
No commits in common. "85b8abbea39b00d11e3f26c322662bb2255ca211" and "9ee309bf486c711b70006c716c86b31b1c778673" have entirely different histories.
85b8abbea3
...
9ee309bf48
@ -318,11 +318,6 @@ const DirectoryPageHeader = ({
|
|||||||
whiteSpace: "normal"
|
whiteSpace: "normal"
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{allCreators.length === 0 && filteredOrganizations.length === 0 ? (
|
|
||||||
<div className="text-center text-muted py-5">
|
|
||||||
No filter found
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<div className="d-flex gap-3">
|
<div className="d-flex gap-3">
|
||||||
{/* Created By */}
|
{/* Created By */}
|
||||||
<div style={{ flexBasis: "30%", maxHeight: "260px", overflowY: "auto" }}>
|
<div style={{ flexBasis: "30%", maxHeight: "260px", overflowY: "auto" }}>
|
||||||
@ -347,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>
|
||||||
@ -368,9 +363,8 @@ const DirectoryPageHeader = ({
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* Sticky Footer Buttons */}
|
{/* Sticky Footer Buttons */}
|
||||||
<div
|
<div
|
||||||
@ -446,21 +440,12 @@ const DirectoryPageHeader = ({
|
|||||||
<ul className="dropdown-menu p-3" style={{ width: "700px" }}>
|
<ul className="dropdown-menu p-3" style={{ width: "700px" }}>
|
||||||
<p className="text-muted m-0 h6">Filter by</p>
|
<p className="text-muted m-0 h6">Filter by</p>
|
||||||
|
|
||||||
{filteredBuckets.length === 0 && filteredCategories.length === 0 ? (
|
|
||||||
<div className="text-center text-muted py-5">
|
|
||||||
No filter found
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<div className="d-flex flex-nowrap">
|
<div className="d-flex flex-nowrap">
|
||||||
<div className="mt-1 me-4" style={{ flexBasis: "50%" }}>
|
<div className="mt-1 me-4" style={{ flexBasis: "50%" }}>
|
||||||
<p className="text-small mb-1">Buckets</p>
|
<p className="text-small mb-1">Buckets</p>
|
||||||
<div className="d-flex flex-wrap">
|
<div className="d-flex flex-wrap">
|
||||||
{filteredBuckets.map(({ id, name }) => (
|
{filteredBuckets.map(({ id, name }) => (
|
||||||
<div
|
<div className="form-check me-3 mb-1" style={{ minWidth: "calc(50% - 15px)" }} key={id}>
|
||||||
className="form-check me-3 mb-1"
|
|
||||||
style={{ minWidth: "calc(50% - 15px)" }}
|
|
||||||
key={id}
|
|
||||||
>
|
|
||||||
<input
|
<input
|
||||||
className="form-check-input form-check-input-sm"
|
className="form-check-input form-check-input-sm"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
@ -469,26 +454,18 @@ const DirectoryPageHeader = ({
|
|||||||
onChange={() => handleTempBucketChange(id)}
|
onChange={() => handleTempBucketChange(id)}
|
||||||
style={{ width: "1rem", height: "1rem" }}
|
style={{ width: "1rem", height: "1rem" }}
|
||||||
/>
|
/>
|
||||||
<label
|
<label className="form-check-label text-nowrap text-small" htmlFor={`bucket-${id}`}>
|
||||||
className="form-check-label text-nowrap text-small"
|
|
||||||
htmlFor={`bucket-${id}`}
|
|
||||||
>
|
|
||||||
{name}
|
{name}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mt-1" style={{ flexBasis: "50%" }}>
|
<div className="mt-1" style={{ flexBasis: "50%" }}>
|
||||||
<p className="text-small mb-1">Categories</p>
|
<p className="text-small mb-1">Categories</p>
|
||||||
<div className="d-flex flex-wrap">
|
<div className="d-flex flex-wrap">
|
||||||
{filteredCategories.map(({ id, name }) => (
|
{filteredCategories.map(({ id, name }) => (
|
||||||
<div
|
<div className="form-check me-3 mb-1" style={{ minWidth: "calc(50% - 15px)" }} key={id}>
|
||||||
className="form-check me-3 mb-1"
|
|
||||||
style={{ minWidth: "calc(50% - 15px)" }}
|
|
||||||
key={id}
|
|
||||||
>
|
|
||||||
<input
|
<input
|
||||||
className="form-check-input form-check-input-sm"
|
className="form-check-input form-check-input-sm"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
@ -497,10 +474,7 @@ const DirectoryPageHeader = ({
|
|||||||
onChange={() => handleTempCategoryChange(id)}
|
onChange={() => handleTempCategoryChange(id)}
|
||||||
style={{ width: "1rem", height: "1rem" }}
|
style={{ width: "1rem", height: "1rem" }}
|
||||||
/>
|
/>
|
||||||
<label
|
<label className="form-check-label text-nowrap text-small" htmlFor={`cat-${id}`}>
|
||||||
className="form-check-label text-nowrap text-small"
|
|
||||||
htmlFor={`cat-${id}`}
|
|
||||||
>
|
|
||||||
{name}
|
{name}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
@ -508,12 +482,12 @@ const DirectoryPageHeader = ({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
|
||||||
|
|
||||||
<div className="d-flex justify-content-end gap-2 mt-1">
|
<div className="d-flex justify-content-end gap-2 mt-1">
|
||||||
<button
|
<button
|
||||||
className="btn btn-xs btn-secondary"
|
className="btn btn-xs btn-secondary"
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
|
// e.stopPropagation();
|
||||||
clearFilter();
|
clearFilter();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@ -529,7 +503,6 @@ const DirectoryPageHeader = ({
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user