fix(website): wrap Hub source labels with larger text

This commit is contained in:
Mohamed Boudra
2026-11-20 15:53:22 +01:00
parent 609ef901c9
commit 41b65254e9
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -85,3 +85,11 @@ test("source names fit on a narrow phone", async ({ page }) => {
await expectSourceLabelFits(page, "Schedules");
await expectSourceLabelFits(page, "Webhooks");
});
test("source names remain readable with larger text on a phone", async ({ page }) => {
await openHub(page, 375);
await page.addStyleTag({ content: "html { font-size: 125%; }" });
for (const name of ["GitHub", "Discord", "Schedules", "Webhooks"]) {
await expectSourceLabelFits(page, name);
}
});
@@ -193,7 +193,7 @@ function SourceTabButton({
<span className="min-w-0 flex-1">
<span
className={`block truncate text-xs leading-5 font-medium lg:text-sm ${
className={`block text-xs leading-5 font-medium [overflow-wrap:anywhere] lg:text-sm ${
isSelected ? "text-white" : "text-white/80 group-hover:text-white"
}`}
>