diff --git a/webapp/api.py b/webapp/api.py index 6e0a2ac..65667fe 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;