fix(console): improve Go comparison chart on mobile (#45044)

Co-authored-by: jayair <53023+jayair@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot] 2026-08-27 13:21:00 -04:00 committed by GitHub
parent 5f5ea53afb
commit 05ea5073be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 67 additions and 1 deletions

View file

@ -855,6 +855,72 @@ body {
gap: 14px;
}
}
@media (max-width: 32rem) {
svg {
overflow: visible;
}
[data-slot="xlabels"] {
transform: translateY(62px);
[data-tick="10"] {
display: none;
}
}
[data-slot="bars"] > [data-model="ox-alpha-free"] {
transform: translateY(39px);
}
[data-slot="pills"] [data-item][data-edge] {
left: 3.846153846%;
right: auto;
width: calc(100% - 3.846153846%);
max-width: 100%;
height: auto;
padding: 0;
background: none;
line-height: 16px;
gap: 3px 8px;
flex-wrap: wrap;
justify-content: flex-start;
&[data-model="muse-spark-1.2-contributor"] {
transform: translateY(11px);
[data-regions] {
flex-basis: 100%;
}
}
&[data-model="ox-alpha-free"] {
transform: translateY(51px);
}
}
figcaption {
margin-top: 90px;
}
}
@media (max-width: 21.25rem) {
[data-slot="xlabels"] {
transform: translateY(100px);
}
[data-slot="bars"] > [data-model="ox-alpha-free"] {
transform: translateY(58px);
}
[data-slot="pills"] [data-item][data-edge][data-model="ox-alpha-free"] {
transform: translateY(70px);
}
figcaption {
margin-top: 128px;
}
}
}
}

View file

@ -152,7 +152,7 @@ function LimitsGraph(props: { href: string }) {
<g data-slot="bars">
<For each={graph}>
{(m, i) => (
<g style={{ "--d": m.d } as any}>
<g data-model={m.id} style={{ "--d": m.d } as any}>
<rect
x={left}
y={gy(i()) - bh / 2}