Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Mobile: keyboard-safe viewport (interactive-widget + VisualViewport --app-height) so the on-screen keyboard resizes the shell instead of pushing UI off-screen
Murtaza Nasir39520568e34d
diff --git a/static/css/styles.css b/static/css/styles.cssindex 02e49999..1b6bdd9a 100644--- a/static/css/styles.css+++ b/static/css/styles.css@@ -379,19 +379,32 @@ body {min-height: 4000px !important; /* Fixed viewport height for mobile */}}-#app {- min-height: 100%; /* Full viewport height */- display: flex;+#app {+ /* Size off the VISIBLE viewport (--app-height is set by the keyboard-safe+ script in the page head) so the on-screen keyboard can't push content+ off-screen — it shrinks the visual viewport but not the layout viewport.+ Progressive fallback: 100vh (universal) -> var(--app-height, 100dvh). */+ height: 100vh;+ height: var(--app-height, 100dvh);+ display: flex;flex-direction: column;}-main {- flex: 1;+main {+ flex: 1;+ min-height: 0; /* allow the flex child to shrink so overflow-y actually scrolls */position: relative;display: flex;flex-direction: column;overflow-y: auto; /* Allow scrolling on main */}+/* Inquire-mode page uses a separate Vue root; same keyboard-safe sizing so the+ chat input never gets pushed under the on-screen keyboard. */+#inquire-app {+ height: 100vh;+ height: var(--app-height, 100dvh);+}+/* Sidebar styles with flexible height */.sidebar-container {height: 100%; /* Use relative height */diff --git a/templates/account.html b/templates/account.htmlindex 8864bd28..a3f28300 100644--- a/templates/account.html+++ b/templates/account.html@@ -2,7 +2,7 @@<html lang="en" class="h-full"><head><meta charset="UTF-8">- <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <meta name="viewport" content="width=device-width, initial-scale=1.0, interactive-widget=resizes-content"><meta name="csrf-token" content="{{ csrf_token() }}"><meta name="robots" content="noindex, nofollow, noarchive, nosnippet, noimageindex"><title>{{ title }} - Speakr</title>diff --git a/templates/group-admin.html b/templates/group-admin.htmlindex a730e331..3e230cf6 100644--- a/templates/group-admin.html+++ b/templates/group-admin.html@@ -2,7 +2,7 @@<html lang="en"><head><meta charset="UTF-8">- <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <meta name="viewport" content="width=device-width, initial-scale=1.0, interactive-widget=resizes-content"><meta name="csrf-token" content="{{ csrf_token() }}"><meta name="robots" content="noindex, nofollow, noarchive, nosnippet, noimageindex"><title>Group Management - Speakr</title>diff --git a/templates/index.html b/templates/index.htmlindex b1a14f0d..7179b0d9 100644--- a/templates/index.html+++ b/templates/index.html@@ -2,7 +2,24 @@<html lang="en" class="h-full"><head><meta charset="UTF-8">- <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <!-- interactive-widget=resizes-content: on Android Chrome the on-screen+ keyboard resizes the layout so the UI fits the space above it. -->+ <meta name="viewport" content="width=device-width, initial-scale=1.0, interactive-widget=resizes-content">+ <script>+ // Keyboard-safe viewport. The on-screen keyboard shrinks the VISUAL+ // viewport but not the LAYOUT viewport, so a 100vh/100% shell overflows+ // and content scrolls off-screen (worst on iOS, which ignores+ // interactive-widget). Mirror the visible height into --app-height; the+ // app shell (#app) is sized off it so it always fits the space above the+ // keyboard, and inner panes scroll instead of the whole page.+ (function () {+ var vv = window.visualViewport, root = document.documentElement;+ function apply() { root.style.setProperty('--app-height', (vv ? vv.height : window.innerHeight) + 'px'); }+ apply();+ if (vv) { vv.addEventListener('resize', apply); vv.addEventListener('scroll', apply); }+ window.addEventListener('orientationchange', function () { setTimeout(apply, 250); });+ })();+ </script><meta name="csrf-token" content="{{ csrf_token() }}"><meta name="robots" content="noindex, nofollow, noarchive, nosnippet, noimageindex"><title>Speakr - Audio Transcription & Summarization</title>diff --git a/templates/inquire.html b/templates/inquire.htmlindex 9aefd7ca..e718e739 100644--- a/templates/inquire.html+++ b/templates/inquire.html@@ -2,7 +2,20 @@<html lang="en" class="h-full"><head><meta charset="UTF-8">- <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <!-- interactive-widget=resizes-content: keyboard resizes layout (Android). -->+ <meta name="viewport" content="width=device-width, initial-scale=1.0, interactive-widget=resizes-content">+ <script>+ // Keyboard-safe viewport (see index.html for rationale): mirror the+ // visible viewport height into --app-height so the keyboard never pushes+ // the chat UI off-screen.+ (function () {+ var vv = window.visualViewport, root = document.documentElement;+ function apply() { root.style.setProperty('--app-height', (vv ? vv.height : window.innerHeight) + 'px'); }+ apply();+ if (vv) { vv.addEventListener('resize', apply); vv.addEventListener('scroll', apply); }+ window.addEventListener('orientationchange', function () { setTimeout(apply, 250); });+ })();+ </script><meta name="csrf-token" content="{{ csrf_token() }}"><meta name="robots" content="noindex, nofollow, noarchive, nosnippet, noimageindex"><title>Inquire Mode - Speakr</title>