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(ui): cap large dialogs at 720px and extra-large dialogs at 880px … · anomalyco/opencode@8bb7fab

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages
    • app/e2e/regression
      • new-session.spec.ts
    • ui/src/overlays/dialog
      • dialog.css
      • dialog.stories.tsx
      • dialog.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/app/e2e/regression/new-session.spec.ts‎

Copy file name to clipboardExpand all lines: packages/app/e2e/regression/new-session.spec.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ test("the location dialog separates added projects from server projects and tags
11541154
await expect(options.nth(0)).toHaveCSS("height", "28px")
11551155
await expect(dialog.locator(".palette-menu-search [data-component='text-input-v2']")).toHaveCSS("height", "28px")
11561156
await expect(dialog.locator(".new-session-location-hints")).toHaveCount(0)
1157-
await expect(dialog.locator("..")).toHaveCSS("width", "880px")
1157+
await expect(dialog.locator("..")).toHaveCSS("width", "720px")
11581158
await expect(options.nth(0)).toHaveCSS("display", "flex")
11591159
await expect(names.nth(0).locator(".command-palette-title")).toHaveCSS("font-size", "13px")
11601160
await expect(names.nth(0).locator(".command-palette-title")).toHaveCSS("white-space", "nowrap")
Collapse file

‎packages/ui/src/overlays/dialog/dialog.css‎

Copy file name to clipboardExpand all lines: packages/ui/src/overlays/dialog/dialog.css
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,14 @@
171171

172172
&:is([data-size="large"], [data-size="x-large"]) [data-slot="dialog-container"] {
173173
--dialog-height: min(calc(100vh - 96px), 600px);
174-
width: min(calc(100vw - 32px), 880px);
174+
width: min(calc(100vw - 32px), 720px);
175175
background: var(--v2-background-bg-base);
176176
border-radius: 12px;
177177
}
178178

179179
&[data-size="x-large"] [data-slot="dialog-container"] {
180180
--dialog-height: min(calc(100vh - 96px), 680px);
181-
width: min(calc(100vw - 32px), 1040px);
181+
width: min(calc(100vw - 32px), 880px);
182182
}
183183

184184
&[data-fit] [data-slot="dialog-container"] {
Collapse file

‎packages/ui/src/overlays/dialog/dialog.stories.tsx‎

Copy file name to clipboardExpand all lines: packages/ui/src/overlays/dialog/dialog.stories.tsx
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Compose with \`DialogHeader\`, \`DialogTitle\`, \`DialogTitleGroup\`, \`DialogBo
1616
### API
1717
- \`Dialog\`: \`size\`, \`variant\`, \`fit\`.
1818
- \`normal\`: 480px wide, for confirmations, sign-ins and small forms.
19-
- \`large\`: 880×600, for palettes, pickers and lists.
20-
- \`x-large\`: 1040×680, for long documents and settings-like panels.
19+
- \`large\`: 720×600, for palettes, pickers and lists.
20+
- \`x-large\`: 880×680, for long documents and settings-like panels.
2121
- Sizes clamp to the window. \`fit\` makes the height follow the content up to the size's height; large sizes keep their top edge, so only the bottom edge moves.
2222
- Dialogs don't set their own container width or height: pick the size that fits.
2323
- \`DialogHeader\`: row container with optional \`closeLabel\` and \`hideClose\`.
Collapse file

‎packages/ui/src/overlays/dialog/dialog.tsx‎

Copy file name to clipboardExpand all lines: packages/ui/src/overlays/dialog/dialog.tsx
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const TEXT_FIELD = [
2121

2222
export interface DialogProps extends ParentProps {
2323
/**
24-
* normal: 480px wide, for confirmations and small forms. large: 880×600, for palettes, pickers and lists.
25-
* x-large: 1040×680, for long documents and settings-like panels. Each clamps to the window.
24+
* normal: 480px wide, for confirmations and small forms. large: 720×600, for palettes, pickers and lists.
25+
* x-large: 880×680, for long documents and settings-like panels. Each clamps to the window.
2626
*/
2727
size?: "normal" | "large" | "x-large"
2828
/** Height follows the content, up to the size's height. Large sizes grow down from a fixed top edge. */

0 commit comments

Comments
0 (0)
You are visitor 01402775 — 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.