From 2295e73455c828597906a9169779078b22ee2a8b Mon Sep 17 00:00:00 2001 From: Danil Date: Sun, 12 Apr 2026 22:29:32 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B8=D1=81=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=B8=D0=B8=20=D1=81=D1=82=D0=B0=D0=B2=D0=BE=D0=BA?= =?UTF-8?q?=20=D0=B8=20=D1=81=D0=BA=D1=80=D0=BE=D0=BB=D0=BB=20=D0=B2=D0=B8?= =?UTF-8?q?=D0=B4=D0=B5=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/api.py | 4 ++-- webapp/frontend/css/style.css | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/webapp/api.py b/webapp/api.py index a54f0a9..90987cc 100644 --- a/webapp/api.py +++ b/webapp/api.py @@ -246,7 +246,7 @@ async def create_bet( async def get_my_bets(user: dict = Depends(get_current_user)): """Активные ставки пользователя.""" user_id = user["user_id"] - result = await _get_user_bets_raw(user_id) + result = await asyncio.to_thread(_get_user_bets_raw, user_id) return {"text": result} @@ -254,7 +254,7 @@ async def get_my_bets(user: dict = Depends(get_current_user)): async def get_bet_history(user: dict = Depends(get_current_user)): """История ставок за месяц + статистика.""" user_id = user["user_id"] - result = await _get_user_bet_history_raw(user_id) + result = await asyncio.to_thread(_get_user_bet_history_raw, user_id) return {"text": result} diff --git a/webapp/frontend/css/style.css b/webapp/frontend/css/style.css index 8347cf0..2ef2e7b 100644 --- a/webapp/frontend/css/style.css +++ b/webapp/frontend/css/style.css @@ -897,7 +897,10 @@ body::before { .furtok-card { height: 100%; + min-height: 100%; + flex-shrink: 0; scroll-snap-align: start; + scroll-snap-stop: always; position: relative; display: flex; align-items: center; -- 2.45.2