diff --git a/website/frontend3/src/styles.scss b/website/frontend3/src/styles.scss index 1c98da5b52b..eff69d95fd4 100644 --- a/website/frontend3/src/styles.scss +++ b/website/frontend3/src/styles.scss @@ -1571,7 +1571,8 @@ osv-tabs.vulnerability-packages[affordance="collapse"] { } .ecosystems-section { - $ecosystem-name-height: 30px; + // Tall enough for a name that wraps onto three lines. + $ecosystem-name-height: 60px; $ecosystem-count-wrapper-height: 210px; margin-left: 0; margin-right: 0; @@ -1660,11 +1661,14 @@ osv-tabs.vulnerability-packages[affordance="collapse"] { top: $ecosystem-count-wrapper-height; height: $ecosystem-name-height; display: flex; - align-items: center; + // Top-align so a wrapped name grows downwards, away from the chart's + // bottom grid line. + align-items: flex-start; justify-content: center; text-align: center; font-family: $osv-heading-font-family; - + box-sizing: border-box; + padding-top: 8px; } .ecosystem-count-wrapper {