feat: responsive pagination control (#20665)

This commit is contained in:
akash-codemonk 2023-02-21 16:41:45 +05:30 committed by GitHub
parent 2c01f104d8
commit b58d46168c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,12 @@ export const FormControlContainer = styled.div`
margin-right: 1rem;
`;
const PaginationContainer = styled.div`
display: grid;
grid-gap: 8px 16px;
grid-template-columns: repeat(auto-fill, 280px);
`;
// using query dynamic input text for both so user can dynamically change these values.
const valueFieldConfig: any = {
key: "value",
@ -82,12 +88,7 @@ export function Pagination(props: {
};
return (
<div
data-cy={name}
style={{
display: "flex",
}}
>
<PaginationContainer data-cy={name}>
{/* form control for Limit field */}
<FormControlContainer>
<FormControl
@ -127,7 +128,7 @@ export function Pagination(props: {
No. of rows to be skipped before querying
</StyledFormLabel>
</FormControlContainer>
</div>
</PaginationContainer>
);
}