fix(site): keep the companions shelf's category in its column on phones (#62486)

This commit is contained in:
Dax
2026-11-06 20:57:54 -05:00
committed by GitHub
Unverified
parent 73d8832adf
commit 0b00d084b0
2 changed files with 5 additions and 4 deletions
@@ -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;
@@ -42,7 +42,7 @@ export function Companions() {
</Show>
</span>
</a>
<span data-slot="body">{appCopy()[app.id].category}</span>
<span data-slot="category">{appCopy()[app.id].category}</span>
{/* The same link again, so screen readers and the tab order skip it. */}
<a
data-slot="get"