GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(console): fit Go page to mobile screens (#51855) · devicenull/opencode@f416138

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/console/app/src
    • component
      • go-plan-chart.css
    • routes/go
      • index.css
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/console/app/src/component/go-plan-chart.css‎

Copy file name to clipboardExpand all lines: packages/console/app/src/component/go-plan-chart.css
+51Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,57 @@
262262
flex-direction: column;
263263
}
264264
}
265+
/* Phones stack each model name above its bar so the table fits without horizontal scrolling. */
266+
@media (max-width: 40rem) {
267+
table,
268+
thead,
269+
tbody,
270+
tfoot {
271+
display: block;
272+
min-width: 0;
273+
}
274+
colgroup,
275+
tfoot td:not([data-slot="axis"]) {
276+
display: none;
277+
}
278+
tr {
279+
display: grid;
280+
grid-template-columns: minmax(0, 1fr) 5.5rem 4rem;
281+
align-items: center;
282+
}
283+
thead tr {
284+
border: 1px solid var(--go-console-border);
285+
border-radius: 6px;
286+
}
287+
thead th {
288+
border: 0;
289+
padding-inline: 0.5rem;
290+
white-space: normal;
291+
}
292+
/* The 100 and 1K ticks sit too close together to label both. */
293+
[data-slot="gridline"]:first-child,
294+
[data-slot="axis"] span:first-child {
295+
display: none;
296+
}
297+
thead th:first-child {
298+
padding-inline-start: 1rem;
299+
}
300+
thead th:last-child,
301+
[data-slot="number"]:last-child {
302+
padding-inline-end: 1rem;
303+
}
304+
tbody th {
305+
grid-column: 1 / -1;
306+
padding-block-end: 0;
307+
}
308+
[data-slot="bars"],
309+
[data-slot="axis"] {
310+
margin-inline-start: 1rem;
311+
}
312+
[data-slot="number"] {
313+
padding-inline: 0.5rem;
314+
}
315+
}
265316
@media (prefers-reduced-motion: reduce) {
266317
[data-slot="tier-switch"] button,
267318
[data-slot="gridline"],
Collapse file

‎packages/console/app/src/routes/go/index.css‎

Copy file name to clipboardExpand all lines: packages/console/app/src/routes/go/index.css
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ body {
153153
}
154154

155155
[data-component="container"] {
156+
width: 100%;
156157
max-width: 67.5rem;
157158
margin: 0 auto;
158159
border: 1px solid var(--color-border-weak);

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.