From b82514101e9d2facc2addb421edbd0733c2e276e Mon Sep 17 00:00:00 2001 From: Sai Udayagiri Date: Sun, 6 Dec 2026 02:22:36 +0530 Subject: [PATCH] fix(website): keep wrapped ecosystem names clear of the grid line Ecosystem names on the homepage chart were vertically centred in a 30px box. Names that wrap onto three lines (e.g. "BellSoft Hardened Containers", "Docker Hardened Images") overflowed the box upwards and were drawn over the chart's bottom dashed line. Top-align the names and give the row enough height for three lines. Co-Authored-By: Claude Fable 5.2 --- website/frontend3/src/styles.scss | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 {