Commit a951675 1 parent cacadce commit a951675 Copy full SHA for a951675
File tree 1 file changed +25
-4
lines changed
1 file changed +25
-4
lines changed Original file line number Diff line number Diff line change 2
2
<div class =" staking-info-page flex-column" >
3
3
<PageHeader :backArrow =" false" >
4
4
<template v-if =" validator " >
5
- {{ $t(
6
- 'Staking with {validator}',
7
- { validator: 'name' in validator ? validator.name : validator.address.substr(0, 9) },
8
- ) }}
5
+ <i18n path =" Staking with {validator}" :tag =" false" >
6
+ <template v-if =" ' name' in validator " slot="validator">
7
+ {{ validator.name }}
8
+ </template >
9
+ <template v-else slot="validator">
10
+ <ShortAddress :address =" validator.address" />
11
+ </template >
12
+ </i18n >
9
13
</template >
10
14
<template v-else >
11
15
{{ $t('Staking') }}
@@ -433,6 +437,23 @@ export default defineComponent({
433
437
434
438
.page-header {
435
439
padding-bottom : 3rem ;
440
+
441
+ ::v- deep h1 {
442
+ display : flex ;
443
+ justify-content : center ;
444
+ gap : 0.25em ;
445
+ flex-wrap : wrap ;
446
+ }
447
+
448
+ .short-address {
449
+ display : inline-flex ;
450
+
451
+ ::v- deep .address {
452
+ line-height : inherit ;
453
+ font-family : inherit ;
454
+ font-weight : inherit ;
455
+ }
456
+ }
436
457
}
437
458
438
459
.page-body {
You can’t perform that action at this time.
0 commit comments