@@ -51,12 +51,13 @@ function addNavbarLinks() {
51
51
button . appendChild ( icon ) ;
52
52
53
53
button . style . color = '#fff' ;
54
- button . style . minWidth = '150px ' ;
55
- button . style . height = '50px ' ;
54
+ button . style . minWidth = '130px ' ;
55
+ button . style . height = '40px ' ;
56
56
button . style . padding = '5px' ;
57
+ button . style . border = '3px solid #373737' ;
57
58
button . style . backgroundColor = '#373737' ;
58
59
button . style . borderRadius = '10px' ;
59
- button . style . fontSize = '15px ' ;
60
+ button . style . fontSize = '12px ' ;
60
61
61
62
const companyName = document . createTextNode ( `${ company } ` ) ;
62
63
button . appendChild ( companyName ) ;
@@ -130,6 +131,10 @@ function addCompanyProblems(sortMethod: string) {
130
131
async function addCompaniesToSelect ( ) {
131
132
const companySelect = document . getElementById ( 'companySelect' ) as HTMLSelectElement ;
132
133
134
+ companySelect . style . backgroundColor = '#373737' ;
135
+ companySelect . style . color = '#fff' ;
136
+ companySelect . style . padding = '5px' ;
137
+
133
138
let uniqueCompanies = new Set < string > ( ) ;
134
139
135
140
const data = await new Promise < { leetcodeProblems : LeetcodeProblems } > ( resolve => {
@@ -146,7 +151,10 @@ async function addCompaniesToSelect() {
146
151
}
147
152
} ) ;
148
153
149
- uniqueCompanies . forEach ( ( company ) => {
154
+ // Convert the Set to an Array and sort it alphabetically
155
+ const sortedCompanies = Array . from ( uniqueCompanies ) . sort ( ) ;
156
+
157
+ sortedCompanies . forEach ( ( company ) => {
150
158
const option = document . createElement ( 'option' ) ;
151
159
option . value = company ;
152
160
option . text = company ;
@@ -161,9 +169,12 @@ async function addCompaniesToSelect() {
161
169
location . reload ( ) ;
162
170
} ) ;
163
171
} ) ;
172
+
173
+ companySelect . style . maxHeight = '500px' ;
164
174
}
165
175
166
176
177
+
167
178
function sortBy ( column : string ) {
168
179
if ( column === 'Score' ) {
169
180
solutions . sort ( ( a , b ) => b . score - a . score ) ;
0 commit comments