mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
fix(RolePicker): wrap Reset/Submit in a div to fix positioning
Signed-off-by: Katalina Okano <git@kat.cafe>
This commit is contained in:
parent
c1b9153bf4
commit
cc592a9da1
1 changed files with 14 additions and 10 deletions
|
@ -114,16 +114,20 @@ export const RolePicker = (props: RolePickerProps) => {
|
|||
</CategoryContainer>
|
||||
))}
|
||||
</div>
|
||||
<FaderOpacity
|
||||
isVisible={xor(selectedRoles, props.member.roles).length !== 0}
|
||||
>
|
||||
<ResetSubmit
|
||||
onSubmit={() => props.onSubmit(selectedRoles)}
|
||||
onReset={() => {
|
||||
updateSelectedRoles(props.member.roles);
|
||||
}}
|
||||
/>
|
||||
</FaderOpacity>
|
||||
<div>
|
||||
<FaderOpacity
|
||||
isVisible={
|
||||
xor(selectedRoles, props.member.roles).length !== 0
|
||||
}
|
||||
>
|
||||
<ResetSubmit
|
||||
onSubmit={() => props.onSubmit(selectedRoles)}
|
||||
onReset={() => {
|
||||
updateSelectedRoles(props.member.roles);
|
||||
}}
|
||||
/>
|
||||
</FaderOpacity>
|
||||
</div>
|
||||
</>
|
||||
) : (
|
||||
<InfoBox>
|
||||
|
|
Loading…
Add table
Reference in a new issue