From 0b00d084b022a7bb64225b9557dfd24e7398b97a Mon Sep 17 00:00:00 2001 From: Dax Date: Fri, 6 Nov 2026 20:57:54 -0500 Subject: [PATCH] fix(site): keep the companions shelf's category in its column on phones (#62486) --- services/site/src/component/site/companions.css | 7 ++++--- services/site/src/component/site/companions.tsx | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/services/site/src/component/site/companions.css b/services/site/src/component/site/companions.css index e1365f592f2..3a3d73167b1 100644 --- a/services/site/src/component/site/companions.css +++ b/services/site/src/component/site/companions.css @@ -97,8 +97,9 @@ -webkit-text-stroke: var(--title-stroke); } - /* A card column is narrow, so the category may wrap to a second line rather than clip. */ - [data-slot="body"] { + /* A card column is narrow, so the category may wrap to a second line rather than clip. Not + "body", which the block it sits in lays out as its own column. */ + [data-slot="category"] { grid-column: 2; grid-row: 2; align-self: start; @@ -232,7 +233,7 @@ align-self: center; } - [data-slot="body"] { + [data-slot="category"] { grid-column: 3; grid-row: 1; align-self: center; diff --git a/services/site/src/component/site/companions.tsx b/services/site/src/component/site/companions.tsx index b29a62fb3c3..eb8ef0ce581 100644 --- a/services/site/src/component/site/companions.tsx +++ b/services/site/src/component/site/companions.tsx @@ -42,7 +42,7 @@ export function Companions() { - {appCopy()[app.id].category} + {appCopy()[app.id].category} {/* The same link again, so screen readers and the tab order skip it. */}