Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 9663705

Browse files
authored
Merge pull request #230 from utkarsha-deriv/utkarsha/token-switcher-gap
2 parents b6f38d3 + ba404cb commit 9663705

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/components/ApiTokenNavbarItem/api_token_switcher.module.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,17 @@
118118
overflow-y: scroll;
119119
max-height: rem(40);
120120
}
121-
@media (max-width: 1200px) {
121+
@media (min-width: 768px) and (max-width: 1200px) {
122122
position: fixed;
123123
width: 100%;
124124
top: calc(var(--nav-height) + rem(7));
125125
left: 0;
126126
right: 0;
127127
}
128+
@media (max-width: 768px) {
129+
position: fixed;
130+
width: 100%;
131+
top: calc(var(--nav-height) + rem(3.8));
132+
}
128133
}
129134
}

src/components/ApiTokenNavbarItem/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ const ApiTokenNavbarItem = () => {
5959
)}
6060

6161
{is_toggle_dropdown && (
62-
<div className={styles.tokenDropdownWrapper}>
62+
<div
63+
className={styles.tokenDropdownWrapper}
64+
onClick={() => {
65+
setToggleDropdown((prev) => !prev);
66+
}}
67+
>
6368
{tokens.length > 1 && (
6469
<div className={styles.tokenDropdown}>
6570
<TokenDropdown />

0 commit comments

Comments
 (0)