Skip to content

Commit a7713a9

Browse files
committed
revert legacy comment and fine tune legacy aspect ratio
1 parent 65e25ac commit a7713a9

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

web_src/css/features/heatmap.css

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,14 @@
77
.activity-heatmap-container {
88
container-type: inline-size;
99
}
10-
11-
@container (width > 0) {
12-
#user-heatmap {
13-
/* Set element to fixed height so that it does not resize after load. The calculation is complex
14-
because the element does not scale with a fixed aspect ratio. */
15-
height: calc((100cqw / 5) - (100cqw / 25) + 20px);
16-
}
10+
#user-heatmap.is-loading {
11+
aspect-ratio: 5.4823972051; /* the size is about 816 x 148.84 */
1712
}
18-
19-
/* Fallback height adjustment above for browsers that don't support container queries */
20-
@supports not (container-type: inline-size) {
21-
#user-heatmap.is-loading {
22-
aspect-ratio: 5.415;
23-
}
24-
.user.profile #user-heatmap.is-loading {
25-
aspect-ratio: 5.645;
26-
}
13+
.user.profile #user-heatmap.is-loading {
14+
aspect-ratio: 5.6290608387; /* the size is about 953 x 169.3 */
2715
}
2816

17+
2918
#user-heatmap text {
3019
fill: currentcolor !important;
3120
}

0 commit comments

Comments
 (0)