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);