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(web): cap dialog height so long content keeps actions reachable by EightDoor · Pull Request #430 · tickernelz/opencode-mem

Conversation

@EightDoor

@EightDoor EightDoor commented Oct 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Summary

Closes #429

The shared dialog is fixed-centered with no height limit, so a long skill body (the skill-content textarea uses field-sizing-content) grows the dialog past the viewport while the page itself does not scroll — the Save button ends up unreachable.

This caps the shared Dialog content at the viewport height with internal scrolling (max-h-[calc(100dvh-2rem)] overflow-y-auto), matching the max-w-[calc(100%-2rem)] pattern already used for width. Fixing it in dialog.svelte covers every dialog (skill editor, memory editor, cleanup/migration dialogs) in one place.

Measured on the Skills → Create Skill dialog with a ~1.7k-char skill body at viewport 1280x800:

before after
dialog height 2024px (top -612, overflowed the viewport) 768px (top 16, fully in viewport)
Save button bottom 1388 — outside viewport, unreachable reachable after scrolling the dialog (bottom 760, in viewport)
dialog scrollable no yes

Test plan

  • Exercised the change locally: reproduced on bun run dev:sim (sim data, no real memories touched), verified before/after geometry above, clicked Save end-to-end (dialog closes, skill saved)
  • Regression on another dialog built on the same component: memory editor with long content — dialog capped at 768px, scrolls, Save reachable and clickable
  • Noted follow-up or known limitations: 7 pre-existing bun test failures on my machine (config/embedding-prefix/profile-runtime) come from local user config leaking into the test env (CONFIG.embeddingPooling resolves to last_token via the installed model preset instead of the expected mean); none import web/ and none are touched by this change. bun test after bun run build: 828 pass / 7 fail / 6 skip.

Checklist

  • Branch is based on main (do not open PRs from commits already on main)
  • [~] bun test passes (or N/A) — see pre-existing failures noted above
  • bun run typecheck passes (or N/A)
  • bun run check passes (format + lint + typecheck; or N/A)
  • cd web && bun run check (svelte-check): 0 errors, 0 warnings
  • Docs / README updated when behavior or contribution process changes — N/A

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
EightDoor and others added 2 commits October 23, 2026 16:59
@EightDoor
fix(web): cap dialog height so long content keeps actions reachable
4c6610d
Dialog content is fixed-centered with no height limit, so a long skill
body (the textarea uses field-sizing-content) grows the dialog past the
viewport and the footer actions end up unreachable because the page
itself does not scroll.

Cap the shared dialog at the viewport height with internal scrolling.
This also fixes other long-form dialogs (e.g. the memory editor) in one
place.

Closes tickernelz#429
@EyJunge1
fix(web): keep dialog header and actions pinned while body scrolls
53094d7
Overflow on the whole dialog made Save reachable only after scrolling
and hid the close button. Cap height on a flex column shell, scroll the
body, and pin header/footer — aligning AiCleanup with the shared layout.
@EyJunge1

EyJunge1 commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

Review follow-up

The original max-h + overflow-y-auto on the whole dialog fixed reachability, but scrolled header, close button, and Save away until you scrolled to the end.

Pushed a follow-up that matches the pattern already used in AI Cleanup:

  • dialog.svelte: flex column shell, viewport height cap, overflow-hidden
  • app-dialog.svelte: body scrolls; header/footer stay pinned
  • AiCleanupDialog.svelte: drop the one-off grid max-height override and fill the shared body

Save / Cancel stay visible without scrolling; long skill/memory bodies still scroll inside the dialog.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@EyJunge1
EyJunge1 merged commit 3a89971 into tickernelz:main Oct 24, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

@EyJunge1 EyJunge1 mentioned this pull request Oct 24, 2026
chore(release): release v2.34.0 #434
Merged
2 of 6 tasks
@Oscar-Williams Oscar-Williams mentioned this pull request Nov 1, 2026
fix(web): bound Memory Trash list scroll inside the dialog #471
Merged
9 of 11 tasks
EyJunge1 pushed a commit that referenced this pull request Nov 2, 2026
@Oscar-Williams
fix(web): bound Memory Trash list scroll inside the dialog (#471)
6d22833
TrashDialog is a custom overlay, so the shared dialog height cap from
#430 does not apply. Make the panel a flex column and give the list
min-h-0 flex-1 overflow-y-auto so many trashed items scroll inside the
dialog and Restore stays reachable.

Co-authored-by: Oscar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Web UI: skill content editor doesn't scroll, confirm button unreachable for long skills

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@EightDoor @EyJunge1
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.