Refactor FilterInput Component for Improved Layout and Styling
- Updated the FilterInput component to enhance its layout by applying a new class and adjusting styles for better responsiveness. - Modified the ScrollBox and inner div styles to ensure proper sizing and alignment, improving the overall user interface. - Added CSS rules to support the new layout, ensuring consistent behavior across different screen sizes.
This commit is contained in:
parent
f97bdc364d
commit
ef79c881e4
@ -868,10 +868,28 @@ const FilterInput = ({
|
|||||||
// Keep the input focused while interacting with the popover.
|
// Keep the input focused while interacting with the popover.
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
}}
|
}}
|
||||||
style={{ width: 280, height: 220, margin: -4 }}
|
className='filter-input-property-filter'
|
||||||
|
style={{
|
||||||
|
display: 'inline-block',
|
||||||
|
maxWidth: 280,
|
||||||
|
maxHeight: 220,
|
||||||
|
margin: -4,
|
||||||
|
verticalAlign: 'top'
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<ScrollBox inner smallPadding>
|
<ScrollBox
|
||||||
<div style={{ padding: '12px 16px', minWidth: 0 }}>
|
inner
|
||||||
|
smallPadding
|
||||||
|
style={{ height: 'auto', maxHeight: 220, maxWidth: 280 }}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
padding: '12px 16px',
|
||||||
|
width: 'max-content',
|
||||||
|
maxWidth: 280,
|
||||||
|
boxSizing: 'border-box'
|
||||||
|
}}
|
||||||
|
>
|
||||||
<SimplePropertyFilter
|
<SimplePropertyFilter
|
||||||
modelType={propertyFilter.modelType}
|
modelType={propertyFilter.modelType}
|
||||||
propertyName={propertyFilter.propertyName}
|
propertyName={propertyFilter.propertyName}
|
||||||
@ -1014,6 +1032,12 @@ const FilterInput = ({
|
|||||||
display: none;
|
display: none;
|
||||||
height: 0;
|
height: 0;
|
||||||
}
|
}
|
||||||
|
.filter-input-property-filter .simplebar-content-wrapper {
|
||||||
|
max-width: none;
|
||||||
|
}
|
||||||
|
.filter-input-property-filter .simplebar-content {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
`}</style>
|
`}</style>
|
||||||
{showPlaceholder && (
|
{showPlaceholder && (
|
||||||
<span
|
<span
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user