fix: css dropdown for multiselect
This commit is contained in:
parent
dfa788cfab
commit
da397d32f4
|
|
@ -157,7 +157,38 @@ export const DropdownStyles = createGlobalStyle<{
|
||||||
}>`
|
}>`
|
||||||
${({ dropDownWidth, id }) => `
|
${({ dropDownWidth, id }) => `
|
||||||
.multiselect-popover-width-${id} {
|
.multiselect-popover-width-${id} {
|
||||||
min-width: ${dropDownWidth}px !important;
|
width: ${dropDownWidth}px !important;
|
||||||
|
|
||||||
|
&.rc-select-dropdown-hidden {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
&.multi-select-dropdown {
|
||||||
|
min-height: 100px;
|
||||||
|
position: absolute;
|
||||||
|
background: #fff;
|
||||||
|
width: auto;
|
||||||
|
border-radius: 0px;
|
||||||
|
margin-top: 5px;
|
||||||
|
background: white;
|
||||||
|
box-shadow: 0 6px 20px 0px rgba(0, 0, 0, 0.15) !important;
|
||||||
|
overflow-x: scroll;
|
||||||
|
> div {
|
||||||
|
min-width: ${dropDownWidth}px;
|
||||||
|
}
|
||||||
|
.rc-select-item {
|
||||||
|
font-size: 14px;
|
||||||
|
padding: 5px 16px;
|
||||||
|
align-items: center;
|
||||||
|
cursor: pointer;
|
||||||
|
width: 100%;
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
.rc-select-item-option-state {
|
||||||
|
.bp3-control.bp3-checkbox {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`}
|
`}
|
||||||
.rc-select-dropdown-hidden {
|
.rc-select-dropdown-hidden {
|
||||||
|
|
@ -283,35 +314,10 @@ ${({ dropDownWidth, id }) => `
|
||||||
animation-name: ${rcSelectDropdownSlideUpOut};
|
animation-name: ${rcSelectDropdownSlideUpOut};
|
||||||
animation-play-state: running;
|
animation-play-state: running;
|
||||||
}
|
}
|
||||||
|
|
||||||
.multi-select-dropdown {
|
.multi-select-dropdown {
|
||||||
min-height: 100px;
|
|
||||||
position: absolute;
|
|
||||||
background: #fff;
|
|
||||||
width: auto;
|
|
||||||
border-radius: 0px;
|
|
||||||
margin-top: 5px;
|
|
||||||
background: white;
|
|
||||||
box-shadow: 0 6px 20px 0px rgba(0, 0, 0, 0.15) !important;
|
|
||||||
overflow-x: scroll;
|
|
||||||
> div {
|
|
||||||
min-width: ${({ dropDownWidth }) => dropDownWidth}px;
|
|
||||||
}
|
|
||||||
${CommonSelectFilterStyle}
|
${CommonSelectFilterStyle}
|
||||||
.rc-select-item {
|
|
||||||
font-size: 14px;
|
|
||||||
padding: 5px 16px;
|
|
||||||
align-items: center;
|
|
||||||
cursor: pointer;
|
|
||||||
width: 100%;
|
|
||||||
height: 38px;
|
|
||||||
}
|
|
||||||
.rc-select-item-option-state {
|
|
||||||
.bp3-control.bp3-checkbox {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const MultiSelectContainer = styled.div<{
|
export const MultiSelectContainer = styled.div<{
|
||||||
|
|
@ -426,6 +432,7 @@ export const MultiSelectContainer = styled.div<{
|
||||||
}
|
}
|
||||||
.rc-select-selection-overflow {
|
.rc-select-selection-overflow {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user