diff --git a/app/styles/home.scss b/app/styles/home.scss index 88e58396ae4..4512ac5b41d 100644 --- a/app/styles/home.scss +++ b/app/styles/home.scss @@ -111,6 +111,12 @@ @include justify-content(space-between); @include align-items(center); + span { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + img { vertical-align: middle; } } li a:hover { background-color: darken($main-bg-dark, 5%); } @@ -123,4 +129,10 @@ } } -#home-crates > div { @include flex(1); } +#home-crates > div { + @include flex(1); + + // flexbox trick to help truncate text and prevent overflow + // https://css-tricks.com/flexbox-truncated-text/ + min-width: 0; +} diff --git a/app/templates/components/crate-list.hbs b/app/templates/components/crate-list.hbs index 39f4e5d976e..2a5b10cb956 100644 --- a/app/templates/components/crate-list.hbs +++ b/app/templates/components/crate-list.hbs @@ -2,7 +2,7 @@ {{#each crates as |crate|}}