mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-17 15:36:48 +00:00
fix: fix the alignment of next and prev pagination buttons
This commit is contained in:
parent
c8f3ab667a
commit
9533fe1c76
@ -1,11 +1,11 @@
|
||||
import { LeftOutlined, RightOutlined } from '@ant-design/icons';
|
||||
import { Button, Select } from 'antd';
|
||||
import { Select } from 'antd';
|
||||
import { DEFAULT_PER_PAGE_OPTIONS, Pagination } from 'hooks/queryPagination';
|
||||
import { memo, useMemo } from 'react';
|
||||
import { popupContainer } from 'utils/selectPopupContainer';
|
||||
|
||||
import { defaultSelectStyle } from './config';
|
||||
import { Container } from './styles';
|
||||
import { Container, StyledButton } from './styles';
|
||||
|
||||
function Controls({
|
||||
offset = 0,
|
||||
@ -49,7 +49,7 @@ function Controls({
|
||||
|
||||
return (
|
||||
<Container>
|
||||
<Button
|
||||
<StyledButton
|
||||
loading={isLoading}
|
||||
size="small"
|
||||
type="link"
|
||||
@ -57,8 +57,8 @@ function Controls({
|
||||
onClick={handleNavigatePrevious}
|
||||
>
|
||||
<LeftOutlined /> Previous
|
||||
</Button>
|
||||
<Button
|
||||
</StyledButton>
|
||||
<StyledButton
|
||||
loading={isLoading}
|
||||
size="small"
|
||||
type="link"
|
||||
@ -66,7 +66,7 @@ function Controls({
|
||||
onClick={handleNavigateNext}
|
||||
>
|
||||
Next <RightOutlined />
|
||||
</Button>
|
||||
</StyledButton>
|
||||
|
||||
{showSizeChanger && (
|
||||
<Select<Pagination['limit']>
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import { Button } from 'antd';
|
||||
import styled from 'styled-components';
|
||||
|
||||
export const Container = styled.div`
|
||||
@ -5,3 +6,8 @@ export const Container = styled.div`
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
`;
|
||||
|
||||
export const StyledButton = styled(Button)`
|
||||
display: flex;
|
||||
align-items: center;
|
||||
`;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user