Skip to content

Commit 3b52f2c

Browse files
authored
Add scrollable behavior to language selection menu (#69)
1 parent 48e6a3b commit 3b52f2c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/language-select/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ const Wrapper = styled.button`
7777
box-shadow: var(--shadow-md);
7878
column-count: 2;
7979
80+
/* Add scrollable behavior */
81+
max-height: 500px;
82+
overflow-y: auto;
83+
8084
a {
8185
display: block;
8286
padding: 0.1em 1em;
@@ -120,4 +124,4 @@ const LanguageSelect = () => {
120124
)
121125
}
122126

123-
export default LanguageSelect
127+
export default LanguageSelect

0 commit comments

Comments
 (0)