@@ -84,7 +84,7 @@ export const ConnectButton: React.FC<{
8484 } ) => {
8585 return (
8686 < div
87- className = "absolute right-10 top-10"
87+ className = "absolute right-10 top-8 z- 10"
8888 { ...( ! mounted && {
8989 "aria-hidden" : true ,
9090 style : {
@@ -98,20 +98,16 @@ export const ConnectButton: React.FC<{
9898 if ( ! mounted || ! account || ! chain ) {
9999 return (
100100 < Button
101- className = "text-accent"
101+ className = "text-accent h-10 rounded-full px-8 text-lg "
102102 onClick = { openConnectModal }
103- style = { { height : "30px" } }
104103 variant = { variant || "primary" }
105104 >
106105 Connect
107106 </ Button >
108107 )
109108 }
110109 return (
111- < div
112- className = "relative group"
113- style = { { gap : 12 , height : "30px" } }
114- >
110+ < div className = "relative group h-10" style = { { gap : 12 } } >
115111 { characters . isSuccess ? (
116112 < >
117113 < button
@@ -128,23 +124,22 @@ export const ConnectButton: React.FC<{
128124 name = {
129125 characters . data ?. list ?. [ 0 ] ?. metadata ?. content ?. name
130126 }
131- size = { 30 }
127+ size = { 40 }
132128 />
133129 < div className = "flex-1 flex flex-col min-w-0" >
134130 < span
135- className = { `text-left leading-none font-medium truncate ${
131+ className = { `text-left leading-tight font-medium truncate text-lg ${
136132 InsufficientBalance
137133 ? "text-red-600"
138134 : "text-gray-600"
139135 } `}
140- style = { { marginBottom : "0.15rem" } }
141136 >
142137 { characters . data ?. list ?. [ 0 ] ?. metadata ?. content
143138 ?. name || account . displayName }
144139 </ span >
145140 { characters . data ?. list ?. [ 0 ] ?. handle && (
146141 < span
147- className = { `text-left leading-none text-xs truncate ${
142+ className = { `text-left leading-tight truncate text-sm ${
148143 InsufficientBalance
149144 ? "text-red-400"
150145 : "text-gray-400"
@@ -162,6 +157,44 @@ export const ConnectButton: React.FC<{
162157 } -0 pt-2 group-hover:block top-full z-10 text-gray-600`}
163158 >
164159 < 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+ ) }
165198 { InsufficientBalance && (
166199 < UniLink
167200 href = "https://faucet.crossbell.io/"
0 commit comments