Skip to content

Commit

Permalink
fix(frontend): fix header alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Falinor committed Dec 18, 2024
1 parent 58a3264 commit 276ef31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ function SelectableListHeader(props: SelectableListHeaderProps) {
</>
);

const classes = classNames(styles.selectableListHeader, {
[styles.selectableListHeaderInfo]: selected > 0
});

if (!hasSelected() && props.default) {
return props.default;
}
Expand All @@ -69,7 +65,14 @@ function SelectableListHeader(props: SelectableListHeaderProps) {
}}
>
<Grid xs="auto">{selectedCount}</Grid>
<Grid sx={{ display: 'flex', justifyContent: 'flex-end' }} xs>
<Grid
sx={{
display: 'flex',
alignItems: 'center',
justifyContent: 'flex-end'
}}
xs
>
<SelectableListHeaderActions {...actions?.props} />
</Grid>
</Grid>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/HousingList/HousingListTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ const HousingListTab = ({
<SelectableListHeader entity="logement" default={<></>}>
<SelectableListHeaderActions>
{filteredHousingCount !== undefined && filteredHousingCount > 0 && (
<div>
<>
{selectedCount > 1 && (
<Button
className="fr-mr-1w"
Expand Down Expand Up @@ -280,7 +280,7 @@ const HousingListTab = ({
onSubmit={submitSelectedHousingUpdate}
onClose={() => setUpdatingSelectedHousing(undefined)}
/>
</div>
</>
)}
</SelectableListHeaderActions>
</SelectableListHeader>
Expand Down

0 comments on commit 276ef31

Please sign in to comment.