Skip to content

Commit

Permalink
Merge pull request #2498 from novasamatech/tbaut-scroll-signatory-list
Browse files Browse the repository at this point in the history
Fix: scroll signatory list
  • Loading branch information
Tbaut authored Oct 17, 2024
2 parents fbd8285 + 75874cd commit ea2d06b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export const SelectSignatories = () => {
};

return (
<div className="flex max-h-full flex-1 flex-col">
<div className="flex flex-col gap-2">
<div className="flex flex-1 flex-col">
<div className="flex max-h-96 flex-col gap-2 overflow-y-auto overflow-x-hidden">
{Array.from(signatories.entries()).map(([key, value]) => (
<Signatory
key={key}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,22 +182,24 @@ export const Signatory = ({
onChange={onNameChange}
/>
</div>
<Combobox
className="flex-1"
label={accountInputLabel}
placeholder={t('createMultisigAccount.signatorySelection')}
options={options}
query={query}
value={address}
prefixElement={prefixElement}
onChange={({ value }) => {
onAddressChange(value);
}}
onInput={handleQueryChange}
/>
{!isOwnAccount && onDelete && (
<IconButton className="ml-2 mt-4" name="delete" size={20} onClick={() => onDelete(signtoryIndex)} />
)}
<div className="flex max-h-full overflow-hidden">
<Combobox
className="flex-1"
label={accountInputLabel}
placeholder={t('createMultisigAccount.signatorySelection')}
options={options}
query={query}
value={address}
prefixElement={prefixElement}
onChange={({ value }) => {
onAddressChange(value);
}}
onInput={handleQueryChange}
/>
{!isOwnAccount && onDelete && (
<IconButton className="ml-2 mt-4" name="delete" size={20} onClick={() => onDelete(signtoryIndex)} />
)}
</div>
</div>
);
};

0 comments on commit ea2d06b

Please sign in to comment.