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
pull/32038/head^2
Simon Pistache 2 months ago committed by GitHub
parent 74550a9b94
commit 859be09813
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      web_src/css/features/projects.css

@ -3,6 +3,8 @@
flex-direction: row; flex-direction: row;
flex-wrap: nowrap; flex-wrap: nowrap;
overflow-x: auto; overflow-x: auto;
overflow-y: clip;
align-items: stretch;
margin: 0 0.5em; margin: 0 0.5em;
} }
@ -25,8 +27,8 @@
margin: 0 0.5rem !important; margin: 0 0.5rem !important;
padding: 0.5rem !important; padding: 0.5rem !important;
width: 320px; width: 320px;
height: calc(100vh - 450px); height: initial;
min-height: 60vh; min-height: max(calc(100vh - 400px), 300px);
flex: 0 0 auto; flex: 0 0 auto;
overflow: visible; overflow: visible;
display: flex; display: flex;
@ -61,7 +63,7 @@
padding: 0 !important; padding: 0 !important;
flex-wrap: nowrap !important; flex-wrap: nowrap !important;
flex-direction: column; flex-direction: column;
overflow-x: auto; overflow-x: clip;
gap: .25rem; gap: .25rem;
} }

Loading…
Cancel
Save