Skip to content

Commit 245891d

Browse files
committed
fix: align download icon
1 parent bb73ba7 commit 245891d

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.module.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,12 @@
66
container-type: inline-size;
77
width: 100%;
88
}
9+
10+
.paystubIconWrapper {
11+
display: flex;
12+
justify-content: flex-start;
13+
14+
@include container-query(map-get($global-breakpoints, 'small')) {
15+
justify-content: flex-end;
16+
}
17+
}

src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.tsx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -234,17 +234,19 @@ export const PayrollOverviewPresentation = ({
234234
key: 'paystubs',
235235
title: t('tableHeaders.paystub'),
236236
render: (employeeCompensations: EmployeeCompensations) => (
237-
<ButtonIcon
238-
aria-label={t('downloadPaystubLabel')}
239-
variant="tertiary"
240-
onClick={() => {
241-
if (employeeCompensations.employeeUuid) {
242-
onPaystubDownload(employeeCompensations.employeeUuid)
243-
}
244-
}}
245-
>
246-
<DownloadIcon />
247-
</ButtonIcon>
237+
<div className={styles.paystubIconWrapper}>
238+
<ButtonIcon
239+
aria-label={t('downloadPaystubLabel')}
240+
variant="tertiary"
241+
onClick={() => {
242+
if (employeeCompensations.employeeUuid) {
243+
onPaystubDownload(employeeCompensations.employeeUuid)
244+
}
245+
}}
246+
>
247+
<DownloadIcon />
248+
</ButtonIcon>
249+
</div>
248250
),
249251
})
250252
}

0 commit comments

Comments
 (0)