Skip to content

Commit 0c9d46b

Browse files
committed
use special class
1 parent aa83a3f commit 0c9d46b

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

templates/user/dashboard/dashboard.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div role="main" aria-label="{{.Title}}" class="page-content dashboard feeds">
33
{{template "user/dashboard/navbar" .}}
44
<div class="ui container flex-container">
5-
<div class="flex-container-main">
5+
<div class="flex-container-main activity-heatmap-container">
66
{{template "base/alert" .}}
77
{{template "user/heatmap" .}}
88
{{if .Page.Paginater.TotalPages}}

templates/user/profile.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="ui four wide column">
66
{{template "shared/user/profile_big_avatar" .}}
77
</div>
8-
<div class="ui twelve wide column tw-mb-4">
8+
<div class="ui twelve wide column tw-mb-4 activity-heatmap-container">
99
{{template "user/overview/header" .}}
1010
{{if eq .TabName "activity"}}
1111
{{if .ContextUser.KeepActivityPrivate}}

web_src/css/features/heatmap.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
position: relative;
55
}
66

7+
.activity-heatmap-container {
8+
container: activity-heatmap-container / inline-size;
9+
}
10+
711
@supports (container-type: inline-size) {
8-
@container (width > 0) {
12+
@container activity-heatmap-container (width > 0) {
913
#user-heatmap {
1014
/* Set element to fixed height so that it does not resize after load. The calculation is complex
1115
because the element does not scale with a fixed aspect ratio. */

web_src/css/modules/flexcontainer.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
.flex-container-main {
2020
flex: 1;
2121
min-width: 0; /* make the "text truncate" work, otherwise the flex axis is not limited and the text just overflows */
22-
container-type: inline-size;
2322
}
2423

2524
@media (max-width: 767.98px) {

web_src/css/modules/grid.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,6 @@
135135
}
136136
}
137137

138-
.ui.grid .column {
139-
container-type: inline-size;
140-
}
141-
142138
.ui.grid > .column:only-child,
143139
.ui.grid > .row > .column:only-child {
144140
width: 100%;

0 commit comments

Comments
 (0)