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
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:
1 parent
9d860cbaf3
commit
4bd884ebd1
3 files changed
+83
-15
No files matched your search
@@ -150,8 +150,11 @@ const RemoteControlDialog = () => {
|
|||||||
<div className="remote-control-heading-copy">
|
<div className="remote-control-heading-copy">
|
||||||
<span>{item ? "Передать медиа" : "Устройства Blink"}</span>
|
<span>{item ? "Передать медиа" : "Устройства Blink"}</span>
|
||||||
<small>
|
<small>
|
||||||
{activeSessions.length}{" "}
|
{item
|
||||||
{activeSessions.length === 1 ? "устройство" : "устройств"} Blink
|
? "Выберите, куда отправить воспроизведение"
|
||||||
|
: "Выберите устройство для управления"}{" "}
|
||||||
|
· {activeSessions.length}{" "}
|
||||||
|
{activeSessions.length === 1 ? "устройство" : "устройств"}
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -208,9 +211,21 @@ const RemoteControlDialog = () => {
|
|||||||
списке появятся только клиенты Blink — Jellyfin Web, телевизоры и
|
списке появятся только клиенты Blink — Jellyfin Web, телевизоры и
|
||||||
другие приложения сюда не попадают.
|
другие приложения сюда не попадают.
|
||||||
</p>
|
</p>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="remote-control-empty-refresh"
|
||||||
|
onClick={() => blink.refetch()}
|
||||||
|
>
|
||||||
|
<span className="material-symbols-rounded">refresh</span>
|
||||||
|
Проверить снова
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="remote-session-grid">
|
<>
|
||||||
|
<div className="remote-control-section-label">
|
||||||
|
Доступные устройства
|
||||||
|
</div>
|
||||||
|
<div className="remote-session-grid">
|
||||||
{activeSessions.map((session) => (
|
{activeSessions.map((session) => (
|
||||||
<SessionCard
|
<SessionCard
|
||||||
key={session.Id}
|
key={session.Id}
|
||||||
@@ -234,7 +249,8 @@ const RemoteControlDialog = () => {
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
|
|||||||
@@ -58,6 +58,7 @@
|
|||||||
|
|
||||||
> small {
|
> small {
|
||||||
font-size: 0.7rem;
|
font-size: 0.7rem;
|
||||||
|
line-height: 1.35;
|
||||||
color: rgb(255 255 255 / 0.48);
|
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 {
|
.remote-session-grid {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -298,14 +308,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&-action {
|
&-action {
|
||||||
flex: 0 0 34px;
|
flex: 0 0 auto;
|
||||||
width: 34px;
|
width: auto;
|
||||||
height: 34px;
|
height: 34px;
|
||||||
padding: 0;
|
padding: 0 0.75rem;
|
||||||
border-radius: 50%;
|
border-radius: 999px;
|
||||||
border-color: rgb(255 255 255 / 0.1);
|
border-color: rgb(255 255 255 / 0.1);
|
||||||
background: rgb(255 255 255 / 0.055);
|
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) {
|
&:hover:not(:disabled) {
|
||||||
background: rgb(255 255 255 / 0.12);
|
background: rgb(255 255 255 / 0.12);
|
||||||
@@ -313,6 +324,11 @@
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.is-icon {
|
||||||
|
width: auto;
|
||||||
|
padding: 0 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
&.is-primary {
|
&.is-primary {
|
||||||
background: #f5196b;
|
background: #f5196b;
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
@@ -329,7 +345,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&-action-label {
|
&-action-label {
|
||||||
display: none;
|
display: inline;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -369,6 +385,32 @@
|
|||||||
color: #ff6aa8;
|
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) {
|
@media (max-width: 700px) {
|
||||||
.remote-control-dialog {
|
.remote-control-dialog {
|
||||||
border-radius: 24px !important;
|
border-radius: 24px !important;
|
||||||
@@ -416,17 +458,26 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&-status {
|
&-status {
|
||||||
display: none;
|
display: inline-flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-actions {
|
&-actions {
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
justify-content: flex-end;
|
justify-content: stretch;
|
||||||
margin-top: -0.15rem;
|
margin-top: 0.15rem;
|
||||||
|
|
||||||
.session-card-action {
|
.session-card-action {
|
||||||
flex: 0 0 34px;
|
flex: 1 1 0;
|
||||||
width: 34px;
|
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)}
|
onClick={() => onOpenRemote(session)}
|
||||||
>
|
>
|
||||||
<span className="material-symbols-rounded">settings_remote</span>
|
<span className="material-symbols-rounded">settings_remote</span>
|
||||||
|
<span className="session-card-action-label">Пульт</span>
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user