fix infinite page expansion on mobile
Browse filesReplace calc(100vh - X) with fixed pixel heights to avoid
iframe expansion loop in HuggingFace Spaces context.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
735 unmodified lines73673773873974074174274374474574674774874975075175275375475575639 unmodified lines796797798799800801802803735 unmodified linesbutton.primary { font-weight: 600; }.gradio-accordion { margin-bottom: 12px; }/* Mobile optimizations */@media (max-width: 768px) {/* Constrain the chatbot height on mobile to leave room for input */#chat-window, .chatbot {height: calc(100vh - 350px) !important;min-height: 200px !important;max-height: calc(100vh - 350px) !important;}/* Hide the TTS audio component label on mobile to save space */#tts-audio {margin: 4px 0 !important;}/* Compact the audio player on mobile */#tts-audio audio {height: 40px !important;}39 unmodified lines/* Extra small screens (phones in portrait) */@media (max-width: 480px) {#chat-window, .chatbot {height: calc(100vh - 380px) !important;max-height: calc(100vh - 380px) !important;}#input-row {735 unmodified lines73673773873974074174274374474574674774874975075175275375475539 unmodified lines795796797798799800801802735 unmodified linesbutton.primary { font-weight: 600; }.gradio-accordion { margin-bottom: 12px; }/* Mobile optimizations - use fixed heights to avoid iframe expansion issues */@media (max-width: 768px) {/* Use fixed height for chatbot on mobile (avoids 100vh iframe issues) */#chat-window, .chatbot {height: 350px !important;min-height: 250px !important;max-height: 350px !important;}/* Compact the TTS audio on mobile */#tts-audio {margin: 4px 0 !important;}#tts-audio audio {height: 40px !important;}39 unmodified lines/* Extra small screens (phones in portrait) */@media (max-width: 480px) {#chat-window, .chatbot {height: 280px !important;max-height: 280px !important;}#input-row {
app.py+8-9