6.12.1: Фикс диалога ошибки загрузки
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m8s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m8s
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "play-life-web",
|
"name": "play-life-web",
|
||||||
"version": "6.12.0",
|
"version": "6.12.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@@ -1,28 +1,11 @@
|
|||||||
.loading-error-container {
|
.loading-error-container {
|
||||||
position: fixed;
|
padding: 0.5rem 0;
|
||||||
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));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.loading-error-content {
|
.loading-error-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
gap: 0.75rem;
|
||||||
text-align: center;
|
|
||||||
gap: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.loading-error-text {
|
.loading-error-text {
|
||||||
@@ -32,6 +15,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.loading-error-button {
|
.loading-error-button {
|
||||||
|
width: 100%;
|
||||||
padding: 0.75rem 1.5rem;
|
padding: 0.75rem 1.5rem;
|
||||||
background: linear-gradient(to right, #4f46e5, #9333ea);
|
background: linear-gradient(to right, #4f46e5, #9333ea);
|
||||||
color: white;
|
color: white;
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ function LoadingError({ onRetry }) {
|
|||||||
return (
|
return (
|
||||||
<div className="loading-error-container">
|
<div className="loading-error-container">
|
||||||
<div className="loading-error-content">
|
<div className="loading-error-content">
|
||||||
<div className="loading-error-text">Ошибка, повторите позже</div>
|
|
||||||
{onRetry && (
|
{onRetry && (
|
||||||
<button
|
<button
|
||||||
onClick={onRetry}
|
onClick={onRetry}
|
||||||
|
|||||||
Reference in New Issue
Block a user