Skip to content

Commit 8c5f37f

Browse files
committed
Fix(Options-menu) - Fixed options menu
147
1 parent 1aa3f91 commit 8c5f37f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/common/chip/ChipDropdown.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ function ChipDropdown(props: ChipProps) {
6262
leaveTo="transform opacity-0 scale-95"
6363
>
6464
<Menu.Items className="absolute right-0 z-10 mt-2 origin-top-right bg-white rounded-md shadow-lg w-36 ring-1 ring-black ring-opacity-5 focus:outline-none">
65+
<div className='max-h-40 overflow-y-auto rounded-md p-2'>
6566
<div className="flex flex-col py-1">
6667
{dropdownNetworkList.map(({ name, key, iconPath }, index) => (
6768
<Menu.Item key={key}>
@@ -91,6 +92,7 @@ function ChipDropdown(props: ChipProps) {
9192
</Menu.Item>
9293
))}
9394
</div>
95+
</div>
9496
</Menu.Items>
9597
</Transition>
9698
</Menu>

src/components/global/searchblock/Options.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ function Options({ networkValue, setNetworkValue }: { networkValue: number; setN
3333
<img src={"/zap2.svg"} alt="" style={{ width: '20px', height: 'auto' }} />
3434
<span>Quick search</span>
3535
</div>
36+
<div className='max-h-40 overflow-y-auto rounded-md p-2'>
3637
{NETWORK_LIST.map(({ name, key, iconPath, iconPathInverted }, index) => (
3738
<div
3839
onClick={() => handleValue(index)}
@@ -44,7 +45,7 @@ function Options({ networkValue, setNetworkValue }: { networkValue: number; setN
4445
<span>{name}</span>
4546
</div>
4647
))}
47-
48+
</div>
4849
</div>
4950
</div>
5051
</div>

0 commit comments

Comments
 (0)