0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-22 12:07:37 +01:00

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
This commit is contained in:
Simon Pistache 2024-09-16 22:41:46 +02:00 committed by GitHub
parent 74550a9b94
commit 859be09813
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,8 @@
flex-direction: row;
flex-wrap: nowrap;
overflow-x: auto;
overflow-y: clip;
align-items: stretch;
margin: 0 0.5em;
}
@ -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;
@ -61,7 +63,7 @@
padding: 0 !important;
flex-wrap: nowrap !important;
flex-direction: column;
overflow-x: auto;
overflow-x: clip;
gap: .25rem;
}