fix: pagination fieldset styles
This commit is contained in:
parent
3a94721c97
commit
4083641a6a
|
|
@ -132,18 +132,17 @@ export default function TimeEntriesPage() {
|
|||
variant="light"
|
||||
radius={theme.radius.md}
|
||||
leftIcon={<Play />}
|
||||
sx={{ marginTop: theme.spacing.sm, marginBottom: theme.spacing.sm }}
|
||||
>
|
||||
Start
|
||||
</Button>
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
alignItems: 'flex-end',
|
||||
justifyContent: 'space-between',
|
||||
margin: '0.5rem 0'
|
||||
}}
|
||||
>
|
||||
<NativeSelect
|
||||
sx={{
|
||||
marginLeft: 'auto',
|
||||
marginRight: '0.5rem',
|
||||
marginTop: theme.spacing.sm,
|
||||
marginBottom: theme.spacing.sm
|
||||
}}
|
||||
data={[
|
||||
{ label: '25 / page', value: '25' },
|
||||
{ label: '50 / page', value: '50' },
|
||||
|
|
@ -159,7 +158,14 @@ export default function TimeEntriesPage() {
|
|||
/>
|
||||
{data.total / pageSize > 1 && (
|
||||
<Pagination
|
||||
style={{ marginLeft: 10 }}
|
||||
sx={{
|
||||
marginLeft: '0.5rem',
|
||||
marginTop: theme.spacing.sm,
|
||||
marginBottom: theme.spacing.sm
|
||||
}}
|
||||
aria-label="Navigate through time entries pages"
|
||||
siblings={1}
|
||||
boundaries={1}
|
||||
page={page}
|
||||
total={Math.ceil(data.total / pageSize)}
|
||||
onChange={(page) => {
|
||||
|
|
@ -170,7 +176,6 @@ export default function TimeEntriesPage() {
|
|||
}}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</Paper>
|
||||
<Group
|
||||
mt="lg"
|
||||
|
|
|
|||
Loading…
Reference in a new issue