feat(ui): индикатор connected в тулбаре и панель переподключения

This commit is contained in:
AidarKC
2026-04-22 16:53:36 +03:00
parent 29a07a9a8b
commit 0159dd9074
4 changed files with 198 additions and 37 deletions
+56
View File
@@ -611,6 +611,62 @@
font-size: 11px;
}
.toolbar-label-wrap {
display: grid;
justify-items: center;
line-height: 1.05;
}
.toolbar-btn-profile {
position: relative;
}
.toolbar-connection-indicator {
display: inline-flex;
align-items: center;
gap: 3px;
margin-top: 1px;
min-height: 9px;
}
.toolbar-connection-text {
font-size: 8px;
letter-spacing: 0.02em;
text-transform: lowercase;
color: rgba(191, 213, 255, 0.8);
opacity: 0;
transition: opacity 0.2s ease;
}
.toolbar-connection-dot {
width: 7px;
height: 7px;
border-radius: 999px;
background: rgba(148, 162, 195, 0.65);
box-shadow: 0 0 0 2px rgba(97, 116, 156, 0.25);
transition: 0.2s ease;
}
.toolbar-connection-indicator.is-connected .toolbar-connection-text {
opacity: 1;
color: rgba(145, 255, 192, 0.9);
}
.toolbar-connection-indicator.is-connected .toolbar-connection-dot {
background: #71e9a5;
box-shadow: 0 0 0 2px rgba(72, 201, 134, 0.28);
}
.toolbar-connection-indicator.is-connecting .toolbar-connection-dot {
background: #f0c56b;
box-shadow: 0 0 0 2px rgba(240, 197, 107, 0.22);
}
.toolbar-connection-indicator.is-disconnected .toolbar-connection-dot {
background: #e48792;
box-shadow: 0 0 0 2px rgba(228, 135, 146, 0.24);
}
.toolbar-btn.active {
background: rgba(83, 216, 251, 0.14);
color: var(--text);
+8 -7
View File
@@ -41,11 +41,11 @@ body {
background: linear-gradient(180deg, rgba(7, 12, 23, 0) 0%, rgba(6, 11, 22, 0.96) 44%);
}
.connection-status-slot {
.connection-retry-banner {
position: absolute;
left: 12px;
right: 12px;
bottom: calc(62px + env(safe-area-inset-bottom));
bottom: calc(74px + env(safe-area-inset-bottom));
z-index: 5;
border-radius: 11px;
border: 1px solid rgba(133, 156, 201, 0.3);
@@ -55,26 +55,27 @@ body {
line-height: 1.2;
text-align: center;
padding: 7px 10px;
pointer-events: none;
pointer-events: auto;
cursor: pointer;
backdrop-filter: blur(10px);
}
.connection-status-slot.is-connected {
.connection-retry-banner.is-connected {
border-color: rgba(124, 235, 171, 0.4);
color: #d8ffe9;
}
.connection-status-slot.is-connecting {
.connection-retry-banner.is-connecting {
border-color: rgba(238, 196, 107, 0.42);
color: #ffe8bb;
}
.connection-status-slot.is-disconnected {
.connection-retry-banner.is-disconnected {
border-color: rgba(228, 127, 145, 0.44);
color: #ffdce3;
}
.connection-status-slot.is-updating {
.connection-retry-banner.is-updating {
border-color: rgba(144, 201, 255, 0.44);
color: #d9eeff;
}