Skip to content

Commit

Permalink
Merge pull request #5587 from msupply-foundation/5463-Manual-requisit…
Browse files Browse the repository at this point in the history
…ions-some-UI-improvements-to-consider

5463 manual requisitions some UI improvements to consider
  • Loading branch information
roxy-dao authored Nov 27, 2024
2 parents 4d155a4 + 84fbb63 commit 97f0eee
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const getButtonProps = (
return {
icon: <ArrowLeftIcon />,
labelKey: 'button.previous',
variant: 'outlined',
variant: 'contained',
};
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,25 @@ export const ListOptions = ({
);

return (
<List sx={{ padding: 0, maxHeight: height * 0.8, overflow: 'auto' }}>
<List
sx={{
padding: 0,
maxHeight: height * 0.6,
overflow: 'auto',
scrollBehavior: 'smooth',
}}
>
{options?.map((option, _) => (
<React.Fragment key={option.id}>
<ListItem
sx={{ padding: '5px 0px' }}
onClick={() => onClick(option.id)}
ref={
option.id === currentId
? l =>
l?.scrollIntoView({ behavior: 'smooth', block: 'center' })
: null
}
>
<ListItemIcon sx={{ padding: 0, minWidth: 25 }}>
<Box
Expand Down

0 comments on commit 97f0eee

Please sign in to comment.