diff --git a/CLAUDE.md b/CLAUDE.md index 4bc032b7..d0ca996a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -82,3 +82,19 @@ Go conventions to follow: - Always handle errors; don't ignore return values - **Migrations:** When adding a new SQL migration file in `migrations/`, bump `RequiredSchemaVersion` in `internal/upgrade/version.go` to match the new migration number - **i18n strings:** When adding user-facing error messages, add key to `internal/i18n/keys.go` and translations to `catalog_en.go`, `catalog_vi.go`, `catalog_zh.go`. For UI strings, add to all locale JSON files in `ui/web/src/i18n/locales/{en,vi,zh}/` + +## Mobile UI/UX Rules + +When implementing or modifying web UI components, follow these rules to ensure mobile compatibility: + +- **Viewport height:** Use `h-dvh` (dynamic viewport height), never `h-screen`. `h-screen` causes content to hide behind mobile browser chrome and virtual keyboards +- **Input font-size:** All ``, `