chore(ui): TEMP disable fullscreen for testing + Android back chevron + BackButton diag
CI / changes (pull_request) Successful in 2s
CI / unit (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
CI / ui (pull_request) Failing after 8s
CI / gate (pull_request) Failing after 0s
CI / deploy (pull_request) Has been skipped

WIP for the Android nav investigation (TEMP bits reverted before merge):
- telegramRequestFullscreen: temporarily a no-op (incl. iOS) so the owner can
  confirm the Android "fullscreen look" is Telegram's own Mini App presentation,
  not our requestFullscreen (isFullscreen is already false on Android).
- Header: show the app's own back chevron in Telegram on Android, where the
  native BackButton does not render — a reliable tap-back. [keep]
- Diagnostic overlay moved app-wide (pointer-events:none) and now reports
  BackButton state (req/present/visible) + viewport geometry, to see whether the
  native BackButton can capture the Android system swipe-back.
This commit is contained in:
Ilia Denisov
2026-06-23 14:04:21 +02:00
parent 79766438a2
commit 6f00c2f41d
4 changed files with 43 additions and 19 deletions
+5 -4
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import { navigate } from '../lib/router.svelte';
import { insideTelegram } from '../lib/telegram';
import { insideTelegram, isTelegramAndroid } from '../lib/telegram';
import { connection } from '../lib/connection.svelte';
import { t } from '../lib/i18n/index.svelte';
import { app } from '../lib/app.svelte';
@@ -9,9 +9,10 @@
let { title, back, grow = false }: { title: string; back?: string; grow?: boolean } = $props();
// Inside Telegram the native header back button (App.svelte) is the back control, so
// the app's own chevron is hidden to avoid two back affordances.
const showBack = $derived(!!back && !insideTelegram());
// Inside Telegram the native header back button (App.svelte) is the back control, so the app's
// own chevron is hidden to avoid two back affordances — except on Android, where the native
// BackButton does not render in the (non-fullscreen) presentation, so the app shows its own.
const showBack = $derived(!!back && (!insideTelegram() || isTelegramAndroid()));
</script>
<header class="nav" class:grow>