Skip to content

fix(chat): slide the empty-chat greeting with the keyboard on mobile - #594

Merged
Leo310 merged 1 commit into
mainfrom
fix/empty-state-keyboard-slide
Nov 26, 2026
Merged

Leo310 merged 1 commit into
mainfrom
fix/empty-state-keyboard-slide

Conversation

@Leo310

@Leo310 Leo310 commented Nov 26, 2026

Copy link
Copy Markdown
Member

What

On mobile, tapping the chat input slides the composer up with the keyboard, but in an empty chat the "Start a new conversation" greeting jumped. The message area takes its new height in one frame, and since the greeting is centred in it, it snapped up by half the distance the composer travels. slideComposer now also slides the empty state (.s2b-chat-empty-state) by half the offset, on the same curve. That covers keyboard open/close and focus moving between the chat and a note while the keyboard is up. Reduced motion skips it, as it does for the composer.

How I tested it

bun run check, format, lint and test pass, and a dev build succeeds. Not yet tried on a device; that is going out as 2.7.0-beta.5 for on-device testing on iOS.

AI assistance: Claude Code wrote the change from Leo's report of the greeting jumping; Leo is testing it on mobile via the beta.

Checklist

  • bun run check, bun run format, bun run lint, and bun run test pass locally
  • I tried the change in a real Obsidian vault (or explained above why that isn't applicable)
  • I read CONTRIBUTING.md, including the section on AI assistance
  • If this adds a provider, a bundled skill, a built-in tool, or changes manifest.json: I noted that the docs site needs updating (see "Documentation" in CONTRIBUTING.md)

The message area takes its new height in one frame when the keyboard opens
or closes, so the centred "Start a new conversation" greeting jumped by half
the distance the composer slides. It now rides the composer's slide over
that half, on the same curve.

Co-Authored-By: Claude <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Empty chats now slide their greeting with the mobile keyboard instead of snapping.

  • The empty-chat greeting slides with the mobile keyboard.

No actionable issues were found. Review was static; the animation was not checked inside Obsidian on a mobile device.

Reviews (1) · Last reviewed commit: "fix(chat): slide the empty-chat greeting..." · Reviewed by Greptile

@Leo310
Leo310 merged commit 851b0eb into main Nov 26, 2026
3 checks passed
@Leo310
Leo310 deleted the fix/empty-state-keyboard-slide branch November 26, 2026 11:38
Leo310 added a commit that referenced this pull request Nov 26, 2026
Google Gemini (#584), Mistral (#585) and LM Studio (#583) as providers, a
directory of OpenAI-compatible services under More providers (#589), and a
per-agent reasoning effort (#582). Quoting chat text into the input (#593),
chats that open where the last one was (#592), model details read from each
provider instead of models.dev (#586), and mobile fixes for the sidebar
drawer, the Cupertino theme, the formatting toolbar and the empty-chat
greeting (#594, #595, #596).

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant