6.12.1: Фикс диалога ошибки загрузки
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m8s

This commit is contained in:
poignatov
2026-03-12 15:20:27 +03:00
parent 2a61b17187
commit 02c8b7537a
4 changed files with 5 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "play-life-web",
"version": "6.12.0",
"version": "6.12.1",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,28 +1,11 @@
.loading-error-container {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 80px; /* Отступ для нижнего бара */
display: flex;
justify-content: center;
align-items: center;
padding: 1rem;
}
/* Учитываем safe-area для мобильных устройств */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
.loading-error-container {
bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
padding: 0.5rem 0;
}
.loading-error-content {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 1rem;
gap: 0.75rem;
}
.loading-error-text {
@@ -32,6 +15,7 @@
}
.loading-error-button {
width: 100%;
padding: 0.75rem 1.5rem;
background: linear-gradient(to right, #4f46e5, #9333ea);
color: white;

View File

@@ -5,7 +5,6 @@ function LoadingError({ onRetry }) {
return (
<div className="loading-error-container">
<div className="loading-error-content">
<div className="loading-error-text">Ошибка, повторите позже</div>
{onRetry && (
<button
onClick={onRetry}