feat(remote): clarify Blink devices dialog
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped

Give the cardless glass sheet a clear purpose line, a list section, visible device status and labelled actions instead of icon-only controls.
This commit is contained in:
1xDed committed 2026-12-03 10:02:06 +03:00
1 parent 9d860cbaf3
commit 4bd884ebd1
3 files changed
+81 -13

No files matched your search

+18 -2
View File
@@ -150,8 +150,11 @@ const RemoteControlDialog = () => {
<div className="remote-control-heading-copy">
<span>{item ? "Передать медиа" : "Устройства Blink"}</span>
<small>
{activeSessions.length}{" "}
{activeSessions.length === 1 ? "устройство" : "устройств"} Blink
{item
? "Выберите, куда отправить воспроизведение"
: "Выберите устройство для управления"}{" "}
· {activeSessions.length}{" "}
{activeSessions.length === 1 ? "устройство" : "устройств"}
</small>
</div>
</div>
@@ -208,8 +211,20 @@ const RemoteControlDialog = () => {
списке появятся только клиенты Blink — Jellyfin Web, телевизоры и
другие приложения сюда не попадают.
</p>
<button
type="button"
className="remote-control-empty-refresh"
onClick={() => blink.refetch()}
>
<span className="material-symbols-rounded">refresh</span>
Проверить снова
</button>
</div>
) : (
<>
<div className="remote-control-section-label">
Доступные устройства
</div>
<div className="remote-session-grid">
{activeSessions.map((session) => (
<SessionCard
@@ -235,6 +250,7 @@ const RemoteControlDialog = () => {
/>
))}
</div>
</>
)}
</DialogContent>
</Dialog>
+62 -11
View File
@@ -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;
}
}
}
@@ -216,6 +216,7 @@ const SessionCard = ({
onClick={() => onOpenRemote(session)}
>
<span className="material-symbols-rounded">settings_remote</span>
<span className="session-card-action-label">Пульт</span>
</button>
)}
</div>