@@ -157,44 +157,6 @@ export const ConnectButton: React.FC<{
157157 } -0 pt-2 group-hover:block top-full z-10 text-gray-600`}
158158 >
159159 < div className = "bg-white rounded-lg ring-1 ring-zinc-100 min-w-[140px] shadow-md py-2 text-sm" >
160- < div className = "px-4 py-2 h-auto flex items-center w-full whitespace-nowrap font-medium" >
161- Your characters
162- </ div >
163- { characters . data ?. list ?. length ? (
164- characters . data ?. list ?. map ( ( character ) => (
165- < UniLink
166- key = { character . handle }
167- href = { `/${ character . handle } ` }
168- className = "px-4 py-2 h-auto flex items-center w-full whitespace-nowrap hover:bg-zinc-100"
169- >
170- < Avatar
171- className = "align-middle mr-2"
172- images = {
173- character . metadata ?. content ?. avatars || [ ]
174- }
175- name = { character . metadata ?. content ?. name }
176- size = { 30 }
177- />
178- < span className = "flex-1 flex flex-col min-w-0" >
179- < span className = "text-left leading-none font-medium truncate" >
180- { character . metadata ?. content ?. name }
181- </ span >
182- < span className = "text-left leading-none text-xs truncate" >
183- { "@" + character . handle }
184- </ span >
185- </ span >
186- { character . primary && (
187- < span className = "font-medium text-xs text-yellow-300 ml-2" >
188- 🌟 Primary
189- </ span >
190- ) }
191- </ UniLink >
192- ) )
193- ) : (
194- < span className = "px-4 py-2 h-auto flex items-center w-full whitespace-nowrap text-zinc-400" >
195- Empty
196- </ span >
197- ) }
198160 { InsufficientBalance && (
199161 < UniLink
200162 href = "https://faucet.crossbell.io/"
@@ -218,6 +180,47 @@ export const ConnectButton: React.FC<{
218180 </ UniLink >
219181 )
220182 } ) }
183+ < hr className = "mt-2 mb-1" />
184+ < div className = "px-4 py-2 h-auto flex items-center w-full whitespace-nowrap font-medium" >
185+ Your characters
186+ </ div >
187+ < div className = "h-96 overflow-scroll" >
188+ { characters . data ?. list ?. length ? (
189+ characters . data ?. list ?. map ( ( character ) => (
190+ < UniLink
191+ key = { character . handle }
192+ href = { `/${ character . handle } ` }
193+ className = "px-4 py-2 h-auto flex items-center w-full whitespace-nowrap hover:bg-zinc-100"
194+ >
195+ < Avatar
196+ className = "align-middle mr-2"
197+ images = {
198+ character . metadata ?. content ?. avatars || [ ]
199+ }
200+ name = { character . metadata ?. content ?. name }
201+ size = { 30 }
202+ />
203+ < span className = "flex-1 flex flex-col min-w-0" >
204+ < span className = "text-left leading-none font-medium truncate" >
205+ { character . metadata ?. content ?. name }
206+ </ span >
207+ < span className = "text-left leading-none text-xs truncate" >
208+ { "@" + character . handle }
209+ </ span >
210+ </ span >
211+ { character . primary && (
212+ < span className = "font-medium text-xs text-yellow-300 ml-2" >
213+ 🌟 Primary
214+ </ span >
215+ ) }
216+ </ UniLink >
217+ ) )
218+ ) : (
219+ < span className = "px-4 py-2 h-auto flex items-center w-full whitespace-nowrap text-zinc-400" >
220+ Empty
221+ </ span >
222+ ) }
223+ </ div >
221224 </ div >
222225 </ div >
223226 </ >
0 commit comments