Merge pull request #683 from ericcornelissen/grid-item-overflow-fix

Fix grid item overflow due to text
This commit is contained in:
Johan Fagerberg 2017-12-01 14:19:03 +01:00 committed by GitHub
commit 403023f7dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -349,7 +349,7 @@
.grid { .grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
grid-auto-rows: 6rem; grid-auto-rows: min-content;
grid-column-gap: 0.375rem; grid-column-gap: 0.375rem;
grid-row-gap: 0.375rem; grid-row-gap: 0.375rem;
grid-auto-flow: dense; grid-auto-flow: dense;
@ -367,6 +367,10 @@
.grid-item { .grid-item {
background-color: #757575; background-color: #757575;
display: flex;
flex-direction: column;
justify-content: center;
padding: 1rem;
text-align: center; text-align: center;
} }
.grid-item--light { .grid-item--light {
@ -405,7 +409,6 @@
.grid-item__link { .grid-item__link {
display: block; display: block;
padding: 1rem 1rem 0;
text-align: center; text-align: center;
width: 100%; width: 100%;
} }
@ -420,9 +423,6 @@
font-weight: 400; font-weight: 400;
line-height: 1rem; line-height: 1rem;
margin: 0; margin: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.grid-item__subtitle { .grid-item__subtitle {