set ImageGallery filter minheight.
This commit is contained in:
parent
59b62d2f10
commit
1e25e2d1ad
@ -190,7 +190,12 @@ const ImageGalleryPage = () => {
|
|||||||
|
|
||||||
{/* Card wrapper */}
|
{/* Card wrapper */}
|
||||||
<div className="card shadow-sm">
|
<div className="card shadow-sm">
|
||||||
<div className="card-body">
|
<div
|
||||||
|
className="card-body"
|
||||||
|
style={{
|
||||||
|
minHeight: (!images?.length && !isLoading) ? "500px" : "auto",
|
||||||
|
}}
|
||||||
|
>
|
||||||
<div className="dataTables_length text-start py-1 px-0 col-md-4 col-12 mb-3">
|
<div className="dataTables_length text-start py-1 px-0 col-md-4 col-12 mb-3">
|
||||||
{!servicesLoading && assignedServices?.length > 0 && (
|
{!servicesLoading && assignedServices?.length > 0 && (
|
||||||
assignedServices.length > 1 ? (
|
assignedServices.length > 1 ? (
|
||||||
@ -218,12 +223,10 @@ const ImageGalleryPage = () => {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Filter Chips */}
|
|
||||||
{/* Filter Chips */}
|
{/* Filter Chips */}
|
||||||
{appliedFiltersChips.length > 0 && (
|
{appliedFiltersChips.length > 0 && (
|
||||||
<div className="mb-3 d-flex flex-wrap gap-2 align-items-center">
|
<div className="mb-3 d-flex flex-wrap gap-2 align-items-center">
|
||||||
<strong className="me-2">Filters:</strong>
|
<strong className="me-2">Filters:</strong>
|
||||||
|
|
||||||
{["Building", "Floor", "Work Area", "Activity", "Uploaded By", "Work Category"].map((label) => {
|
{["Building", "Floor", "Work Area", "Activity", "Uploaded By", "Work Category"].map((label) => {
|
||||||
const chips = appliedFiltersChips.filter(c => c.label === label);
|
const chips = appliedFiltersChips.filter(c => c.label === label);
|
||||||
if (!chips.length) return null;
|
if (!chips.length) return null;
|
||||||
@ -231,7 +234,10 @@ const ImageGalleryPage = () => {
|
|||||||
<div key={label} className="d-flex align-items-center gap-1">
|
<div key={label} className="d-flex align-items-center gap-1">
|
||||||
<strong>{label}:</strong>
|
<strong>{label}:</strong>
|
||||||
{chips.map(chip => (
|
{chips.map(chip => (
|
||||||
<span key={chip.id} className="d-flex align-items-center bg-label-secondary px-2 py-1 rounded">
|
<span
|
||||||
|
key={chip.id}
|
||||||
|
className="d-flex align-items-center bg-label-secondary px-2 py-1 rounded"
|
||||||
|
>
|
||||||
{chip.value}
|
{chip.value}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
@ -262,6 +268,7 @@ const ImageGalleryPage = () => {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Gallery */}
|
{/* Gallery */}
|
||||||
{isLoading ? (
|
{isLoading ? (
|
||||||
<ImageGallerySkeleton count={4} />
|
<ImageGallerySkeleton count={4} />
|
||||||
@ -277,7 +284,6 @@ const ImageGalleryPage = () => {
|
|||||||
moment={moment}
|
moment={moment}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user