File tree 9 files changed +25
-993
lines changed 9 files changed +25
-993
lines changed Original file line number Diff line number Diff line change @@ -598,7 +598,6 @@ overview = Overview
598
598
following = Following
599
599
follow = Follow
600
600
unfollow = Unfollow
601
- heatmap.loading = Loading Heatmap…
602
601
user_bio = Biography
603
602
disabled_public_activity = This user has disabled the public visibility of the activity.
604
603
email_visibility.limited = Your email address is visible to all authenticated users
Original file line number Diff line number Diff line change 10
10
{{template "base/alert" .}}
11
11
<p>{{.locale.Tr "webauthn_sign_in"}}</p>
12
12
</div>
13
- <div class="ui attached segment">
14
- <div class="ui active indeterminate inline loader "></div>
13
+ <div class="ui attached segment gt-df gt-ac gt-jc gt-gap-2 gt-py-3 ">
14
+ <div class="is-loading" style="width: 40px; height: 40px "></div>
15
15
{{.locale.Tr "webauthn_press_button"}}
16
16
</div>
17
17
<div class="ui attached segment">
Original file line number Diff line number Diff line change 1
1
{{if .HeatmapData}}
2
- <div id="user-heatmap"
2
+ <div id="user-heatmap" class="is-loading"
3
3
data-heatmap-data="{{JsonUtils.EncodeToString .HeatmapData}}"
4
4
data-locale-total-contributions="{{$.locale.Tr "heatmap.number_of_contributions_in_the_last_12_months" ($.locale.PrettyNumber .HeatmapTotalContributions)}}"
5
5
data-locale-no-contributions="{{.locale.Tr "heatmap.no_contributions"}}"
6
6
data-locale-more="{{.locale.Tr "heatmap.more"}}"
7
7
data-locale-less="{{.locale.Tr "heatmap.less"}}"
8
- >
9
- <div slot="loading">
10
- <div class="ui active centered inline indeterminate text loader" id="loading-heatmap">{{.locale.Tr "user.heatmap.loading"}}</div>
11
- </div>
12
- </div>
8
+ ></div>
13
9
<div class="divider"></div>
14
10
{{end}}
Original file line number Diff line number Diff line change 2
2
width : 100% ;
3
3
font-size : 9px ;
4
4
position : relative;
5
- min-height : 125px ;
5
+ }
6
+
7
+ /* before the Vue component is mounted, show a loading indicator with dummy size */
8
+ /* the ratio is guesswork, see https://github.com/razorness/vue3-calendar-heatmap/issues/26 */
9
+ # user-heatmap .is-loading {
10
+ aspect-ratio : 5.415 ; /* the size is about 790 x 145 */
11
+ }
12
+ .user .profile # user-heatmap .is-loading {
13
+ aspect-ratio : 5.645 ; /* the size is about 953 x 169 */
6
14
}
7
15
8
16
# user-heatmap text {
32
40
}
33
41
34
42
@media (max-width : 1200px ) {
35
- # user-heatmap {
36
- min-height : 105px ;
37
- }
38
43
# user-heatmap .total-contributions {
39
44
left : 21px ;
40
45
}
41
46
}
42
47
43
48
@media (max-width : 1000px ) {
44
- # user-heatmap {
45
- min-height : 80px ;
46
- }
47
49
# user-heatmap .total-contributions {
48
50
font-size : 10px ;
49
51
left : 17px ;
50
52
bottom : -4px ;
51
53
}
52
54
}
53
-
54
- .user .profile # user-heatmap {
55
- min-height : 135px ;
56
- }
57
-
58
- @media (max-width : 1200px ) {
59
- .user .profile # user-heatmap {
60
- min-height : 115px ;
61
- }
62
- }
63
-
64
- @media (max-width : 1000px ) {
65
- .user .profile # user-heatmap {
66
- min-height : 90px ;
67
- }
68
- }
Original file line number Diff line number Diff line change 58
58
}
59
59
}
60
60
61
- .user .profile # loading-heatmap {
62
- margin-bottom : 1em ;
63
- }
64
-
65
61
.user .profile .ui .secondary .stackable .pointing .menu {
66
62
flex-wrap : wrap;
67
63
}
You can’t perform that action at this time.
0 commit comments