fix(mobile): navigation back behavior, scroll button position

- New Chat → Chat uses replaceState so back skips new chat screen
- Active tab persisted to sessionStorage, restored on back navigation
- Scroll-to-bottom button positioned relative to footer (not hardcoded)
- overscroll-behavior: none to prevent iOS rubber-band

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
kuannnn
2026-03-29 09:50:38 +08:00
parent 10c38ad2e4
commit e2bf3512c9
4 changed files with 28 additions and 14 deletions
+1
View File
@@ -5,6 +5,7 @@ export const STORAGE = {
PROJECT_DIR: 'clawtap:projectDir',
DRAFT: 'clawtap:draft',
INSTALL_DISMISSED: 'clawtap:install-dismissed',
SESSIONS_TAB: 'clawtap:sessionsTab',
adapterPrefs: (id: string) => `clawtap:adapterPrefs:${id}` as const,
} as const;