From 4bd884ebd1b18ce0f471d460846aaa642b56cb62 Mon Sep 17 00:00:00 2001
From: 1xDed
Date: Thu, 3 Dec 2026 10:02:06 +0300
Subject: [PATCH] feat(remote): clarify Blink devices dialog
Give the cardless glass sheet a clear purpose line, a list section, visible device status and labelled actions instead of icon-only controls.
---
src/components/remoteControl/index.tsx | 24 +++++-
.../remoteControl/remoteControl.scss | 73 ++++++++++++++++---
src/components/remoteControl/sessionCard.tsx | 1 +
3 files changed, 83 insertions(+), 15 deletions(-)
diff --git a/src/components/remoteControl/index.tsx b/src/components/remoteControl/index.tsx
index 06a2a85..5511204 100644
--- a/src/components/remoteControl/index.tsx
+++ b/src/components/remoteControl/index.tsx
@@ -150,8 +150,11 @@ const RemoteControlDialog = () => {
{item ? "Передать медиа" : "Устройства Blink"}
- {activeSessions.length}{" "}
- {activeSessions.length === 1 ? "устройство" : "устройств"} Blink
+ {item
+ ? "Выберите, куда отправить воспроизведение"
+ : "Выберите устройство для управления"}{" "}
+ · {activeSessions.length}{" "}
+ {activeSessions.length === 1 ? "устройство" : "устройств"}
@@ -208,9 +211,21 @@ const RemoteControlDialog = () => {
списке появятся только клиенты Blink — Jellyfin Web, телевизоры и
другие приложения сюда не попадают.
+ blink.refetch()}
+ >
+ refresh
+ Проверить снова
+
) : (
-
+ <>
+
+ Доступные устройства
+
+
{activeSessions.map((session) => (
{
}
/>
))}
-
+
+ >
)}
diff --git a/src/components/remoteControl/remoteControl.scss b/src/components/remoteControl/remoteControl.scss
index f9933ad..d183639 100644
--- a/src/components/remoteControl/remoteControl.scss
+++ b/src/components/remoteControl/remoteControl.scss
@@ -58,6 +58,7 @@
> small {
font-size: 0.7rem;
+ line-height: 1.35;
color: rgb(255 255 255 / 0.48);
}
}
@@ -167,6 +168,15 @@
}
}
+.remote-control-section-label {
+ margin: 0.55rem 0.55rem 0.15rem;
+ font-size: 0.62rem;
+ font-weight: 650;
+ letter-spacing: 0.1em;
+ text-transform: uppercase;
+ color: rgb(255 255 255 / 0.35);
+}
+
.remote-session-grid {
display: flex;
flex-direction: column;
@@ -298,14 +308,15 @@
}
&-action {
- flex: 0 0 34px;
- width: 34px;
+ flex: 0 0 auto;
+ width: auto;
height: 34px;
- padding: 0;
- border-radius: 50%;
+ padding: 0 0.75rem;
+ border-radius: 999px;
border-color: rgb(255 255 255 / 0.1);
background: rgb(255 255 255 / 0.055);
- color: rgb(255 255 255 / 0.7);
+ color: rgb(255 255 255 / 0.78);
+ font-size: 0.72rem;
&:hover:not(:disabled) {
background: rgb(255 255 255 / 0.12);
@@ -313,6 +324,11 @@
color: #fff;
}
+ &.is-icon {
+ width: auto;
+ padding: 0 0.75rem;
+ }
+
&.is-primary {
background: #f5196b;
border-color: transparent;
@@ -329,7 +345,7 @@
}
&-action-label {
- display: none;
+ display: inline;
}
}
}
@@ -369,6 +385,32 @@
color: #ff6aa8;
}
+.remote-control-empty-refresh {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.45rem;
+ margin-top: 0.4rem;
+ padding: 0.55rem 0.95rem;
+ border: 1px solid rgb(255 255 255 / 0.12);
+ border-radius: 999px;
+ background: rgb(255 255 255 / 0.06);
+ color: #fff;
+ font: inherit;
+ font-size: 0.78rem;
+ font-weight: 600;
+ cursor: pointer;
+ transition: background-color 160ms ease, border-color 160ms ease;
+
+ .material-symbols-rounded {
+ font-size: 1rem;
+ }
+
+ &:hover {
+ background: rgb(255 255 255 / 0.12);
+ border-color: rgb(255 255 255 / 0.2);
+ }
+}
+
@media (max-width: 700px) {
.remote-control-dialog {
border-radius: 24px !important;
@@ -416,17 +458,26 @@
}
&-status {
- display: none;
+ display: inline-flex;
}
&-actions {
grid-column: 1 / -1;
- justify-content: flex-end;
- margin-top: -0.15rem;
+ justify-content: stretch;
+ margin-top: 0.15rem;
.session-card-action {
- flex: 0 0 34px;
- width: 34px;
+ flex: 1 1 0;
+ width: auto;
+ min-width: 0;
+ padding: 0 0.55rem;
+ font-size: 0.7rem;
+ }
+
+ .session-card-action-label {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
}
}
diff --git a/src/components/remoteControl/sessionCard.tsx b/src/components/remoteControl/sessionCard.tsx
index 0681992..3decc90 100644
--- a/src/components/remoteControl/sessionCard.tsx
+++ b/src/components/remoteControl/sessionCard.tsx
@@ -216,6 +216,7 @@ const SessionCard = ({
onClick={() => onOpenRemote(session)}
>
settings_remote
+ Пульт
)}