mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-16 13:05:14 +03:00
fix(site): keep the companions shelf's category in its column on phones (#62486)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user