fix(console): improve Go comparison chart on mobile (#45044)
Co-authored-by: jayair <53023+jayair@users.noreply.github.com>
This commit is contained in:
parent
5f5ea53afb
commit
05ea5073be
2 changed files with 67 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue