Support chat mobile UX: fix keyboard overlap and improve composer.
Hide bottom navigation while typing and in support chat mode, adapt chat layout to visual viewport/keyboard insets, and enlarge the message composer so input remains visible and comfortable in TG/MAX mobile webviews.
This commit is contained in:
@@ -256,6 +256,21 @@ class Settings(BaseSettings):
|
||||
n8n_max_auth_webhook: str = "" # Webhook n8n: max_user_id → unified_id, contact_id, has_drafts
|
||||
n8n_auth_webhook: str = "" # Универсальный auth: channel + channel_user_id + init_data → unified_id, phone, contact_id, has_drafts
|
||||
|
||||
# ============================================
|
||||
# ПОДДЕРЖКА (чат, треды, n8n webhook)
|
||||
# ============================================
|
||||
n8n_support_webhook: str = "" # N8N_SUPPORT_WEBHOOK — URL webhook n8n (multipart). Обязателен для отправки сообщений.
|
||||
support_attachments_max_count: int = 0 # 0 = без ограничений
|
||||
support_attachments_max_size_mb: int = 0 # 0 = без ограничений
|
||||
support_attachments_allowed_types: str = "" # пусто = любые (например: .pdf,.jpg,image/*)
|
||||
support_incoming_secret: str = "" # Секрет для POST /api/v1/support/incoming (n8n → backend)
|
||||
|
||||
@property
|
||||
def support_attachments_max_size_bytes(self) -> int:
|
||||
if self.support_attachments_max_size_mb <= 0:
|
||||
return 0
|
||||
return self.support_attachments_max_size_mb * 1024 * 1024
|
||||
|
||||
# ============================================
|
||||
# LOGGING
|
||||
# ============================================
|
||||
|
||||
Reference in New Issue
Block a user