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): bound Memory Trash list scroll inside the dialog by Oscar-Williams · Pull Request #471 · tickernelz/opencode-mem

Conversation

@Oscar-Williams

@Oscar-Williams Oscar-Williams commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #469

TrashDialog is a custom overlay, so the shared dialog height cap from #430 does not apply. With many trashed memories the list grew past the panel while overflow-y-auto never got a bounded height, so lower Restore actions stayed unreachable.

This matches the flex / min-h-0 pattern used by app-dialog.svelte and AiCleanupDialog.svelte: the panel is a column flex box capped at max-h-[80vh], the header stays shrink-0, and the list uses min-h-0 flex-1 overflow-y-auto.

Chrome headless layout with 8 trash rows at viewport 1440×813 (80vh panel ≈ 648px):

before after
panel clientHeight / scrollHeight 648 / 1133 (panel clips; content taller than max-h) 648 / 648 (panel stays within max-h)
list clientHeight / scrollHeight 1068 / 1068 (canScroll false) 583 / 1068 (canScroll true)
last Restore bottom ≈ 1190, outside viewport, not reachable after scrollIntoView, bottom ≈ 730, in viewport

Test plan

  • Reproduced unbounded list on the markup before the change (8 items): list scrollHeight === clientHeight, last Restore outside the viewport
  • With the class change: list scrollHeight > clientHeight, scrollIntoView brings the last Restore into the viewport
  • bun run build then bun test — 1013 pass / 4 skip / 0 fail
  • bun run typecheck — pass
  • bun run check (prettier + eslint + tsc) — pass
  • Manual: open Memory Trash with ≥5 items in bun run dev:sim, confirm the list scrolls inside the dialog and Restore on the last row is reachable

Checklist

  • Branch is based on main (do not open PRs from commits already on main)
  • bun test passes
  • bun run typecheck passes
  • bun run check passes (format + lint + typecheck)
  • 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
@Oscar-Williams
fix(web): bound Memory Trash list scroll inside the dialog
89a7076
TrashDialog is a custom overlay, so the shared dialog height cap from
tickernelz#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.
@EyJunge1
EyJunge1 merged commit 6d22833 into tickernelz:main Nov 2, 2026
1 check passed

Uh oh!

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

@EyJunge1 EyJunge1 mentioned this pull request Nov 2, 2026
chore(release): release v2.40.0 #481
Merged
3 tasks done
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: Memory Trash dialog has no scrollbar, entries beyond the visible area are unreachable

Uh oh!

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

2 participants

@Oscar-Williams @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.