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,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;
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user