File tree Expand file tree Collapse file tree 3 files changed +41
-7
lines changed
Expand file tree Collapse file tree 3 files changed +41
-7
lines changed Original file line number Diff line number Diff line change @@ -139,11 +139,22 @@ const aprInfos = [
139139 :infos =" efficiencyInfos"
140140 :title =" $t('dashboard.validator.overview.24h_beaconscore')"
141141 >
142- {{
143- formatPercent(overview?.efficiency.last_24h ?? 0, {
144- maximumFractionDigits: 2,
145- })
146- }}
142+ <BcTooltip
143+ tooltip-class =" tooltip"
144+ >
145+ {{
146+ formatPercent(overview?.efficiency.last_24h ?? 0, {
147+ maximumFractionDigits: 2,
148+ })
149+ }}
150+ <template #tooltip >
151+ <BcTranslation
152+ keypath =" dashboard.beaconscore.template"
153+ linkpath =" dashboard.beaconscore.link"
154+ :to =" externalLink.knowledgeBase.beaconScore"
155+ />
156+ </template >
157+ </BcTooltip >
147158 </DashboardValidatorOverviewItem >
148159 <DashboardValidatorOverviewItem
149160 :title =" $t('dashboard.validator.overview.30d_rewards')"
Original file line number Diff line number Diff line change @@ -257,8 +257,26 @@ watch(
257257 field =" efficiency"
258258 :sortable =" true"
259259 body-class =" efficiency-column"
260- :header =" $t('dashboard.validator.col.beaconscore')"
261260 >
261+ <template #header >
262+ <div class =" validators-header" >
263+ <div >{{ $t("dashboard.validator.col.beaconscore") }}</div >
264+ <BcTooltip
265+ class =" info"
266+ tooltip-class =" summary-info-tooltip"
267+ @click.stop
268+ >
269+ <template #tooltip >
270+ <BcTranslation
271+ keypath =" dashboard.beaconscore.template"
272+ linkpath =" dashboard.beaconscore.link"
273+ :to =" externalLink.knowledgeBase.beaconScore"
274+ />
275+ </template >
276+ <BcIcon name =" circle-info" />
277+ </BcTooltip >
278+ </div >
279+ </template >
262280 <template #body =" slotProps " >
263281 <DashboardTableSummaryValue
264282 :class =" slotProps.data.className"
@@ -376,7 +394,7 @@ watch(
376394 position : relative ;
377395
378396 .info {
379- top : 8 px ;
397+ top : calc ( 50 % - 9 px ) ;
380398 right : -50px ;
381399 }
382400 }
@@ -407,6 +425,7 @@ watch(
407425 .status-column ,
408426 .efficiency-column {
409427 padding : 7px !important ;
428+ min-width : 170px ;
410429 }
411430
412431 .validator-column {
Original file line number Diff line number Diff line change 170170 },
171171 "dashboard" : {
172172 "account_dashboard" : " Account Dashboard" ,
173+ "beaconscore" : {
174+ "link" : " knowledge base article" ,
175+ "template" : " Read more about how we calculate the BeaconScore in our {link}"
176+ },
173177 "creation" : {
174178 "network" : {
175179 "subtitle" : " What network are your validators on?"
You can’t perform that action at this time.
0 commit comments