Skip to content

Commit 0b00d08

Browse files
authored
fix(site): keep the companions shelf's category in its column on phones (#62486)
1 parent 73d8832 commit 0b00d08

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎services/site/src/component/site/companions.css‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@
9797
-webkit-text-stroke: var(--title-stroke);
9898
}
9999

100-
/* A card column is narrow, so the category may wrap to a second line rather than clip. */
101-
[data-slot="body"] {
100+
/* A card column is narrow, so the category may wrap to a second line rather than clip. Not
101+
"body", which the block it sits in lays out as its own column. */
102+
[data-slot="category"] {
102103
grid-column: 2;
103104
grid-row: 2;
104105
align-self: start;
@@ -232,7 +233,7 @@
232233
align-self: center;
233234
}
234235

235-
[data-slot="body"] {
236+
[data-slot="category"] {
236237
grid-column: 3;
237238
grid-row: 1;
238239
align-self: center;

‎services/site/src/component/site/companions.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function Companions() {
4242
</Show>
4343
</span>
4444
</a>
45-
<span data-slot="body">{appCopy()[app.id].category}</span>
45+
<span data-slot="category">{appCopy()[app.id].category}</span>
4646
{/* The same link again, so screen readers and the tab order skip it. */}
4747
<a
4848
data-slot="get"

0 commit comments

Comments
 (0)