@@ -39,8 +39,8 @@ struct ActivityHomeHeaderView: View {
39
39
. animation ( . easeInOut, value: inspectedScripts)
40
40
} else if walletSyncState == . syncing {
41
41
HStack {
42
- if progress < 1.0 {
43
- if isKyotoClient {
42
+ if isKyotoClient {
43
+ if progress < 100.0 { // Kyoto progress is percent
44
44
if currentBlockHeight > 0 {
45
45
Text ( " Block \( currentBlockHeight) " )
46
46
. padding ( . trailing, - 5.0 )
@@ -54,30 +54,28 @@ struct ActivityHomeHeaderView: View {
54
54
. contentTransition ( . numericText( ) )
55
55
. transition ( . opacity)
56
56
}
57
- } else {
58
- Text ( " \( inspectedScripts) " )
59
- . padding ( . trailing, - 5.0 )
60
- . fontWeight ( . semibold)
61
- . contentTransition ( . numericText( ) )
62
- . transition ( . opacity)
63
-
64
- Text ( " / " )
65
- . padding ( . trailing, - 5.0 )
66
- . transition ( . opacity)
67
- Text ( " \( totalScripts) " )
68
- . contentTransition ( . numericText( ) )
69
- . transition ( . opacity)
70
57
}
58
+ } else if progress < 1.0 { // Esplora progress is fraction
59
+ Text ( " \( inspectedScripts) " )
60
+ . padding ( . trailing, - 5.0 )
61
+ . fontWeight ( . semibold)
62
+ . contentTransition ( . numericText( ) )
63
+ . transition ( . opacity)
64
+
65
+ Text ( " / " )
66
+ . padding ( . trailing, - 5.0 )
67
+ . transition ( . opacity)
68
+ Text ( " \( totalScripts) " )
69
+ . contentTransition ( . numericText( ) )
70
+ . transition ( . opacity)
71
71
}
72
72
73
73
if !isKyotoClient || ( isKyotoClient && progress > 0 ) {
74
- Text (
75
- String (
76
- format: " %.0f%% " ,
77
- progress
78
- )
79
- )
80
- . contentTransition ( . numericText( ) )
74
+ HStack ( spacing: 0 ) {
75
+ Text ( " \( Int ( progress) ) " )
76
+ . contentTransition ( . numericText( ) )
77
+ Text ( " % " )
78
+ }
81
79
. transition ( . opacity)
82
80
}
83
81
}
0 commit comments