Skip to content

Commit 859be09

Browse files
feat(#31666): Set the columns height to hug all its contents (#31726)
In Projects, columns heights are defined by the sum of all contents height of the biggest column, rather than a fraction of the viewport height. It default to 60vh when there is no cards to display. Fix #31666
1 parent 74550a9 commit 859be09

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

web_src/css/features/projects.css

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
flex-direction: row;
44
flex-wrap: nowrap;
55
overflow-x: auto;
6+
overflow-y: clip;
7+
align-items: stretch;
68
margin: 0 0.5em;
79
}
810

@@ -25,8 +27,8 @@
2527
margin: 0 0.5rem !important;
2628
padding: 0.5rem !important;
2729
width: 320px;
28-
height: calc(100vh - 450px);
29-
min-height: 60vh;
30+
height: initial;
31+
min-height: max(calc(100vh - 400px), 300px);
3032
flex: 0 0 auto;
3133
overflow: visible;
3234
display: flex;
@@ -61,7 +63,7 @@
6163
padding: 0 !important;
6264
flex-wrap: nowrap !important;
6365
flex-direction: column;
64-
overflow-x: auto;
66+
overflow-x: clip;
6567
gap: .25rem;
6668
}
6769

0 commit comments

Comments
 (0)