mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
fix(website): wrap Hub source labels with larger text
This commit is contained in:
@@ -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"
|
||||
}`}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user