@@ -62,14 +62,38 @@ function handleDropdownAction(action: string) {
62
62
class =" flex h-full w-full flex-col justify-between rounded-xl border border-skin-border px-3 pb-3 pt-[12px] md:px-3 md:pb-3 md:pt-[12px]"
63
63
@click =" emit('clickUser')"
64
64
>
65
- <div class =" flex w-full justify-between" >
66
- <div class =" flex items-center text-left" >
67
- <AvatarUser :address =" delegate.id" size =" 40" />
68
- <div class =" ml-3" >
69
- <div class =" font-semibold text-skin-heading" >
70
- {{ getUsername(delegate.id, profiles[delegate.id]) }}
65
+ <div class =" flex w-full" >
66
+ <div class =" flex items-center text-left gap-3 flex-auto min-w-0" >
67
+ <AvatarUser :address =" delegate.id" size =" 40" class =" shrink-0" />
68
+ <div class =" flex flex-col truncate grow" >
69
+ <div class =" flex truncate gap-1" >
70
+ <div class =" font-semibold text-skin-heading truncate flex-auto" >
71
+ {{ getUsername(delegate.id, profiles[delegate.id]) }}
72
+ </div >
73
+ <BaseMenu
74
+ :items =" dropdownItems"
75
+ @select =" handleDropdownAction($event)"
76
+ @click.stop
77
+ >
78
+ <template #button >
79
+ <BaseButtonIcon class =" -mr-[6px] !h-[24px]" >
80
+ <i-ho-dots-horizontal class =" text-[17px]" />
81
+ </BaseButtonIcon >
82
+ </template >
83
+ <template #item =" { item } " >
84
+ <div class =" w-[170px] text-skin-link" >
85
+ <span class =" flex items-center gap-1" >
86
+ {{ item.text }}
87
+ <i-ho-external-link
88
+ v-if =" item.action === 'seeExplorer'"
89
+ class =" text-sm"
90
+ />
91
+ </span >
92
+ </div >
93
+ </template >
94
+ </BaseMenu >
71
95
</div >
72
- <div class =" flex gap-[6px]" >
96
+ <div class =" flex gap-x- [6px] flex-wrap " >
73
97
<div
74
98
v-tippy =" {
75
99
content: `${formatNumber(
@@ -98,28 +122,6 @@ function handleDropdownAction(action: string) {
98
122
</div >
99
123
</div >
100
124
</div >
101
- <BaseMenu
102
- :items =" dropdownItems"
103
- @select =" handleDropdownAction($event)"
104
- @click.stop
105
- >
106
- <template #button >
107
- <BaseButtonIcon class =" -mr-[6px] !h-[24px]" >
108
- <i-ho-dots-horizontal class =" text-[17px]" />
109
- </BaseButtonIcon >
110
- </template >
111
- <template #item =" { item } " >
112
- <div class =" w-[170px] text-skin-link" >
113
- <span class =" flex items-center gap-1" >
114
- {{ item.text }}
115
- <i-ho-external-link
116
- v-if =" item.action === 'seeExplorer'"
117
- class =" text-sm"
118
- />
119
- </span >
120
- </div >
121
- </template >
122
- </BaseMenu >
123
125
</div >
124
126
125
127
<div class =" mt-3 h-[48px] cursor-pointer" >
0 commit comments