Skip to content

Commit

Permalink
feat(#31666): Set the columns height to hug all its contents (#31726)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
SimonPistache authored Sep 16, 2024
1 parent 74550a9 commit 859be09
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions web_src/css/features/projects.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
flex-direction: row;
flex-wrap: nowrap;
overflow-x: auto;
overflow-y: clip;
align-items: stretch;
margin: 0 0.5em;
}

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

Expand Down

0 comments on commit 859be09

Please sign in to comment.