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
Expand file treeCollapse file tree
Open diff view settings
Collapse file
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 number | Diff line number | Diff line change |
|---|
|
262 | 262 | flex-direction: column; |
263 | 263 | } |
264 | 264 | } |
| 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 | + } |
265 | 316 | @media (prefers-reduced-motion: reduce) { |
266 | 317 | [data-slot="tier-switch"] button, |
267 | 318 | [data-slot="gridline"], |
|
Collapse file
Copy file name to clipboardExpand all lines: packages/console/app/src/routes/go/index.css +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -153,6 +153,7 @@ body { |
153 | 153 | } |
154 | 154 |
|
155 | 155 | [data-component="container"] { |
| 156 | + width: 100%; |
156 | 157 | max-width: 67.5rem; |
157 | 158 | margin: 0 auto; |
158 | 159 | border: 1px solid var(--color-border-weak); |
|