Skip to content

Commit 2d41576

Browse files
committed
fixed the chains dropdown shifting issue
1 parent 7575e24 commit 2d41576

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/common/chip/ChipDropdown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function ChipDropdown(props: ChipProps) {
4646
}, [searchTerm, dropdownNetworkList]);
4747
return (
4848
<div className="text-sm">
49-
<Menu as="div" className="inline-block text-left ">
49+
<Menu as="div" className="relative inline-block text-left">
5050
<span>
5151
<Menu.Button className={`${sx.wrapper} ${sx[variant]} ${sx[color]} ${className || ''} ${disabled ? sx.disabled : ''}`}>
5252
{(icon && isMoreSelected) && (
@@ -74,7 +74,7 @@ function ChipDropdown(props: ChipProps) {
7474
leaveFrom="transform opacity-100 scale-100"
7575
leaveTo="transform opacity-0 scale-95"
7676
>
77-
<Menu.Items className="absolute right-20 md:right-0 z-10 mt-2 origin-top-right bg-white rounded-md shadow-lg w-52 ring-1 ring-black ring-opacity-5 focus:outline-none">
77+
<Menu.Items className="absolute right-0 mt-2 origin-top-right bg-white rounded-md shadow-lg w-52 ring-1 ring-black ring-opacity-5 focus:outline-none">
7878
<div className='max-h-56 overflow-y-auto rounded-md p-2'>
7979
<div className="flex flex-col py-1">
8080
<input

src/components/global/searchblock/Options.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function Options({ networkValue, setNetworkValue }: { networkValue: number; setN
3030
setSearchTerm(e.target.value);
3131
};
3232
return (
33-
<div className="relative z-0">
33+
<div className="relative z-10">
3434
<div className="py-3 px-4 border-r border-dark-200 bg-white flex items-center gap-1 text-md" role="button" onClick={toggler}>
3535
{/* {/* <img src={NETWORK_LIST[value].img} alt="" /> */}
3636

0 commit comments

Comments
 (0)