GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — feat(app): add previous and next match buttons to conversation search by neriousy · Pull Request #64865 · anomalyco/opencode Conversation
|
| Before | After | |
|---|---|---|
| Matches (2/4) | ![]() |
![]() |
| No matches (0/0), arrows disabled | ![]() |
![]() |
Added by the opencode bot (AI-generated).
Related: #4714
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This works as described. I opened the session-transcript-find story in Chromium for both the base and this PR. Starting at 1/4, clicking next twice gives 3/4 and previous then gives 2/4. The input keeps focus, and at 0/0 both buttons are disabled. tsc -b in packages/app and search-machine.test.ts both pass.
Public API: unchanged. The change only adds UI inside packages/app, with no new i18n keys.
One thing worth fixing: the bar is still a fixed 200px, so the two buttons take space from the query field. In the story it shrinks from about 112px to about 56px (see inline comment).
Related: #4714
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| {c.result.activeDisplay()}/{c.result.count()} | ||
| </span> | ||
| </Show> | ||
| <For each={[-1, 1]}> |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The bar container is still fixed at w-[200px], so these two 20px buttons come out of the text field. In the story the input goes from about 112px on the base to about 56px here. That's fine for trail with 2/4, but a longer query or a count like 12/134 will leave very little of the query visible. Could you widen the bar to make up for the buttons (it is already capped by max-w-[50vw])?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Issue with the search function
There was an error while loading. Please reload this page.