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): polish Go limits chart on mobile (#51870) · devicenull/opencode@3c893f0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/console/app/src
    • component
      • go-plan-chart.css
    • i18n
      • en.ts
    • 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
+39-12Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -262,34 +262,40 @@
262262
}
263263
/* Phones stack each model name above its bar so the table fits without horizontal scrolling. */
264264
@media (max-width: 40rem) {
265-
table,
265+
/* Rows share the table's columns through subgrid, so number columns size to their unwrapped headers. */
266+
table {
267+
display: grid;
268+
grid-template-columns: minmax(0, 1fr) auto auto;
269+
min-width: 0;
270+
}
266271
thead,
267272
tbody,
268273
tfoot {
269-
display: block;
270-
min-width: 0;
274+
display: contents;
271275
}
272276
colgroup,
273277
tfoot td:not([data-slot="axis"]) {
274278
display: none;
275279
}
276280
tr {
277281
display: grid;
278-
grid-template-columns: minmax(0, 1fr) 5.5rem 4rem;
282+
grid-column: 1 / -1;
283+
grid-template-columns: subgrid;
279284
align-items: center;
280285
}
281286
thead tr {
282287
border: 1px solid var(--go-console-border);
283288
border-radius: 6px;
284289
}
285-
thead th {
290+
thead th,
291+
thead th:is(:first-child, :last-child) {
286292
border: 0;
287-
padding-inline: 0.5rem;
288-
white-space: normal;
293+
padding-inline: 0.375rem;
294+
font-size: 0.75rem;
289295
}
290-
/* The 100 and 1K ticks sit too close together to label both. */
291-
[data-slot="gridline"]:first-child,
292-
[data-slot="axis"] span:first-child {
296+
/* The bars are too narrow to label 100 and 1K apart from 10K. */
297+
[data-slot="gridline"],
298+
[data-slot="axis"] span:not(:last-child) {
293299
display: none;
294300
}
295301
thead th:first-child {
@@ -301,17 +307,38 @@
301307
}
302308
tbody th {
303309
grid-column: 1 / -1;
310+
display: flex;
311+
flex-wrap: wrap;
312+
align-items: center;
313+
gap: 0.25rem 0.5rem;
304314
padding-block-end: 0;
305315
}
316+
[data-slot="labels"] {
317+
margin-top: 0;
318+
}
319+
/* Bars extend under the requests column's spare header width, stopping short of the right-aligned numbers. */
306320
[data-slot="bars"],
307321
[data-slot="axis"] {
308-
margin-inline-start: 1rem;
322+
grid-column: 1 / 3;
323+
margin-inline: 1rem 4rem;
324+
}
325+
[data-slot="bars"] {
326+
grid-row: 2;
327+
}
328+
[data-slot="bars"] + [data-slot="number"] {
329+
grid-row: 2;
330+
grid-column: 2;
331+
}
332+
[data-slot="number"]:last-child {
333+
grid-row: 2;
334+
grid-column: 3;
309335
}
310336
[data-slot="number"] {
311-
padding-inline: 0.5rem;
337+
padding-inline: 0.375rem;
312338
}
313339
/* Rows are grids here, so highlight the row itself instead of each cell. */
314340
tbody tr {
341+
padding-block: 0.375rem;
315342
border-radius: 6px;
316343
transition: background-color 120ms ease;
317344
}
Collapse file

‎packages/console/app/src/i18n/en.ts‎

Copy file name to clipboardExpand all lines: packages/console/app/src/i18n/en.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export const dict = {
286286
"go.graph.label": "Requests / 5 hours",
287287
"go.graph.period": "Usage",
288288
"go.graph.model": "Model",
289-
"go.graph.requests": "Est. requests / 5 hr",
289+
"go.graph.requests": "Est. requests / 5h",
290290
"go.graph.allowance": "Monthly usage",
291291
"go.graph.new": "New",
292292
"go.graph.scale": "Nonlinear request scale",
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
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,12 @@ body {
365365
color: var(--color-text-strong);
366366
line-height: 1.4;
367367
}
368+
369+
@media (max-width: 40rem) {
370+
flex-direction: column;
371+
align-items: flex-start;
372+
gap: 8px;
373+
}
368374
}
369375

370376
[data-slot="hero-copy"] {

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.