Skip to content

Commit

Permalink
PIMS-2136 Filter Scroll (#2728)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarkowsky authored Oct 21, 2024
1 parent 9320dd4 commit eaf7cdf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion react-app/src/components/map/clusterPopup/ClusterPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const ClusterPopup = (props: ClusterPopupProps) => {
</IconButton>
</Grid>
</Grid>
<Box overflow={'scroll'}>
<Box sx={{ overflowY: 'scroll' }}>
{popupState.properties.map((property) => (
<PropertyRow
key={`${property.properties.PropertyTypeId === PropertyTypes.BUILDING ? 'Building' : 'Land'}-${property.properties.Id}`}
Expand Down
2 changes: 2 additions & 0 deletions react-app/src/components/map/controls/FilterControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ const FilterControl = (props: FilterControlProps) => {
<Box
sx={{
padding: '1em',
overflowY: 'scroll',
scrollbarWidth: 'none',
}}
>
<FormProvider {...formMethods}>
Expand Down
2 changes: 1 addition & 1 deletion react-app/src/components/map/sidebar/MapSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const MapSidebar = (props: MapSidebarProps) => {
</Grid>

{/* List of Properties */}
<Box overflow={'scroll'} height={'100%'} display={'flex'} flexDirection={'column'}>
<Box height={'100%'} display={'flex'} flexDirection={'column'} sx={{ overflowY: 'scroll' }}>
{propertiesInBounds
.slice(pageIndex * propertyPageSize, pageIndex * propertyPageSize + propertyPageSize)
.map((property) => (
Expand Down

0 comments on commit eaf7cdf

Please sign in to comment.