feat(remote): make Blink devices dialog cardless glass
Continuous Integration / build_web (push) Failing after 0s
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 0s
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
Replace the per-device cards with rows on one charcoal glass sheet, matching the floating media bar: poster, device copy, thin progress line and compact round actions.
This commit is contained in:
1 parent
2a0478fc16
commit
9d860cbaf3
3 files changed
+298
-57
No files matched your search
@@ -150,8 +150,8 @@ 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} Blink
|
{activeSessions.length}{" "}
|
||||||
{activeSessions.length === 1 ? " устройство" : " устройств"}
|
{activeSessions.length === 1 ? "устройство" : "устройств"} Blink
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,13 +1,21 @@
|
|||||||
|
/* Blink devices: one charcoal glass sheet, no device cards. Rows read like
|
||||||
|
the floating media bar at the bottom of the app: cover, copy, thin progress
|
||||||
|
line and compact round actions. */
|
||||||
.remote-control-dialog {
|
.remote-control-dialog {
|
||||||
background:
|
background: linear-gradient(
|
||||||
radial-gradient(circle at 12% 0%, rgb(255 79 154 / 0.16), transparent 38%),
|
180deg,
|
||||||
radial-gradient(circle at 88% 8%, rgb(120 92 255 / 0.16), transparent 42%),
|
rgb(46 46 50 / 0.94),
|
||||||
rgb(12 11 22 / 0.9) !important;
|
rgb(33 33 37 / 0.97)
|
||||||
border: 1px solid rgb(255 255 255 / 0.12);
|
) !important;
|
||||||
|
border: 1px solid rgb(255 255 255 / 0.075) !important;
|
||||||
|
border-radius: 30px !important;
|
||||||
box-shadow:
|
box-shadow:
|
||||||
0 30px 90px rgb(0 0 0 / 0.6),
|
0 30px 80px rgb(0 0 0 / 0.6),
|
||||||
inset 0 1px 0 rgb(255 255 255 / 0.08);
|
inset 0 1px 0 rgb(255 255 255 / 0.07) !important;
|
||||||
|
backdrop-filter: blur(28px) saturate(130%);
|
||||||
|
-webkit-backdrop-filter: blur(28px) saturate(130%);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remote-control-title {
|
.remote-control-title {
|
||||||
@@ -15,41 +23,42 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
padding: 1.1rem 1.25rem 0.7rem !important;
|
padding: 1.15rem 1.3rem 0.75rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remote-control-heading {
|
.remote-control-heading {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.7rem;
|
gap: 0.75rem;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
|
||||||
> .material-symbols-rounded {
|
> .material-symbols-rounded {
|
||||||
width: 2.4rem;
|
width: 2.2rem;
|
||||||
height: 2.4rem;
|
height: 2.2rem;
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
border-radius: 12px;
|
border-radius: 0;
|
||||||
background: rgb(255 255 255 / 0.08);
|
background: transparent;
|
||||||
border: 1px solid rgb(255 255 255 / 0.1);
|
border: 0;
|
||||||
color: rgb(255 255 255 / 0.9);
|
color: #ff6aa8;
|
||||||
|
font-size: 1.45rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-copy {
|
&-copy {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.1rem;
|
gap: 0.15rem;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
|
||||||
> span {
|
> span {
|
||||||
font-size: 1rem;
|
font-size: 1.05rem;
|
||||||
font-weight: 650;
|
font-weight: 650;
|
||||||
letter-spacing: -0.01em;
|
letter-spacing: -0.015em;
|
||||||
}
|
}
|
||||||
|
|
||||||
> small {
|
> small {
|
||||||
font-size: 0.7rem;
|
font-size: 0.7rem;
|
||||||
color: rgb(255 255 255 / 0.5);
|
color: rgb(255 255 255 / 0.48);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -57,49 +66,67 @@
|
|||||||
.remote-control-title-actions {
|
.remote-control-title-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.35rem;
|
gap: 0.2rem;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
|
|
||||||
|
.MuiIconButton-root {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
color: rgb(255 255 255 / 0.62);
|
||||||
|
background: transparent;
|
||||||
|
border: 0;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #fff;
|
||||||
|
background: rgb(255 255 255 / 0.07);
|
||||||
|
}
|
||||||
|
|
||||||
|
.material-symbols-rounded {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.remote-control-only-badge {
|
.remote-control-only-badge {
|
||||||
padding: 0.22rem 0.6rem;
|
padding: 0;
|
||||||
border-radius: 999px;
|
border: 0;
|
||||||
font-size: 0.64rem;
|
border-radius: 0;
|
||||||
|
font-size: 0.62rem;
|
||||||
font-weight: 650;
|
font-weight: 650;
|
||||||
letter-spacing: 0.04em;
|
letter-spacing: 0.09em;
|
||||||
color: #ffd0e7;
|
text-transform: uppercase;
|
||||||
background: rgb(255 79 154 / 0.12);
|
color: rgb(255 255 255 / 0.34);
|
||||||
border: 1px solid rgb(255 79 154 / 0.22);
|
background: transparent;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remote-control-content {
|
.remote-control-content {
|
||||||
padding: 0.4rem 1.25rem 1.3rem !important;
|
padding: 0.1rem 0.75rem 0.75rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* The item being handed over: a plain strip, not another card. */
|
||||||
.remote-control-current {
|
.remote-control-current {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.8rem;
|
gap: 0.8rem;
|
||||||
margin-bottom: 1rem;
|
margin: 0;
|
||||||
padding: 0.65rem;
|
padding: 0.55rem 0.55rem 0.8rem;
|
||||||
border-radius: 16px;
|
border: 0;
|
||||||
background:
|
border-bottom: 1px solid rgb(255 255 255 / 0.07);
|
||||||
linear-gradient(135deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.02)),
|
border-radius: 0;
|
||||||
rgb(255 255 255 / 0.02);
|
background: transparent;
|
||||||
border: 1px solid rgb(255 255 255 / 0.09);
|
box-shadow: none;
|
||||||
box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
|
|
||||||
|
|
||||||
&-poster {
|
&-poster {
|
||||||
width: 52px;
|
width: 48px;
|
||||||
height: 72px;
|
height: 64px;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background: rgb(255 255 255 / 0.07);
|
background: rgb(255 255 255 / 0.06);
|
||||||
color: rgb(255 255 255 / 0.6);
|
color: rgb(255 255 255 / 0.55);
|
||||||
|
|
||||||
> img {
|
> img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -108,7 +135,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.material-symbols-rounded {
|
.material-symbols-rounded {
|
||||||
font-size: 1.6rem;
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -119,10 +146,10 @@
|
|||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
|
||||||
> span {
|
> span {
|
||||||
font-size: 0.64rem;
|
font-size: 0.62rem;
|
||||||
letter-spacing: 0.08em;
|
letter-spacing: 0.08em;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: rgb(255 255 255 / 0.42);
|
color: rgb(255 255 255 / 0.38);
|
||||||
}
|
}
|
||||||
|
|
||||||
> strong {
|
> strong {
|
||||||
@@ -135,15 +162,176 @@
|
|||||||
|
|
||||||
> small {
|
> small {
|
||||||
font-size: 0.7rem;
|
font-size: 0.7rem;
|
||||||
color: rgb(255 255 255 / 0.5);
|
color: rgb(255 255 255 / 0.45);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.remote-session-grid {
|
.remote-session-grid {
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-columns: 1fr;
|
flex-direction: column;
|
||||||
gap: 0.7rem;
|
gap: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Inside this dialog the shared session card loses its surface: the glass
|
||||||
|
sheet is the only panel, rows are separated by hairlines. */
|
||||||
|
.remote-control-dialog {
|
||||||
|
.session-card {
|
||||||
|
grid-template-columns: 48px minmax(0, 1fr) auto;
|
||||||
|
gap: 0.85rem;
|
||||||
|
padding: 0.7rem 0.55rem;
|
||||||
|
border: 0;
|
||||||
|
border-bottom: 1px solid rgb(255 255 255 / 0.065);
|
||||||
|
border-radius: 0;
|
||||||
|
background: transparent;
|
||||||
|
box-shadow: none;
|
||||||
|
backdrop-filter: none;
|
||||||
|
overflow: visible;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgb(255 255 255 / 0.04);
|
||||||
|
border-radius: 14px;
|
||||||
|
border-bottom-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-glow {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-poster {
|
||||||
|
width: 48px;
|
||||||
|
height: 64px;
|
||||||
|
border-radius: 10px;
|
||||||
|
background: rgb(255 255 255 / 0.06);
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
.material-symbols-rounded {
|
||||||
|
font-size: 1.45rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&-status-dot {
|
||||||
|
right: 4px;
|
||||||
|
bottom: 4px;
|
||||||
|
width: 7px;
|
||||||
|
height: 7px;
|
||||||
|
box-shadow: 0 0 0 2px rgb(38 38 42 / 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
&-name {
|
||||||
|
font-size: 0.88rem;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-status {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.32em;
|
||||||
|
margin-left: auto;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
background: transparent;
|
||||||
|
color: #8fe6b2;
|
||||||
|
font-size: 0.64rem;
|
||||||
|
font-weight: 600;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: "";
|
||||||
|
width: 5px;
|
||||||
|
height: 5px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: currentColor;
|
||||||
|
box-shadow: 0 0 8px currentColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.is-paused {
|
||||||
|
color: #ffc46b;
|
||||||
|
background: transparent;
|
||||||
|
border-color: transparent;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.is-idle {
|
||||||
|
color: rgb(255 255 255 / 0.42);
|
||||||
|
background: transparent;
|
||||||
|
border-color: transparent;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&-title {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
color: rgb(255 255 255 / 0.72);
|
||||||
|
}
|
||||||
|
|
||||||
|
&-meta {
|
||||||
|
gap: 0.5rem;
|
||||||
|
font-size: 0.66rem;
|
||||||
|
color: rgb(255 255 255 / 0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
&-progress {
|
||||||
|
height: 2px;
|
||||||
|
margin-top: 0.35rem;
|
||||||
|
background: rgb(255 255 255 / 0.08);
|
||||||
|
|
||||||
|
> span {
|
||||||
|
background: linear-gradient(90deg, #f5196b, #ff7ab5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&-actions {
|
||||||
|
gap: 0.3rem;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-action {
|
||||||
|
flex: 0 0 34px;
|
||||||
|
width: 34px;
|
||||||
|
height: 34px;
|
||||||
|
padding: 0;
|
||||||
|
border-radius: 50%;
|
||||||
|
border-color: rgb(255 255 255 / 0.1);
|
||||||
|
background: rgb(255 255 255 / 0.055);
|
||||||
|
color: rgb(255 255 255 / 0.7);
|
||||||
|
|
||||||
|
&:hover:not(:disabled) {
|
||||||
|
background: rgb(255 255 255 / 0.12);
|
||||||
|
border-color: rgb(255 255 255 / 0.18);
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.is-primary {
|
||||||
|
background: #f5196b;
|
||||||
|
border-color: transparent;
|
||||||
|
box-shadow: 0 6px 16px rgb(245 25 107 / 0.24);
|
||||||
|
|
||||||
|
&:hover:not(:disabled) {
|
||||||
|
background: #ff3b82;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.material-symbols-rounded {
|
||||||
|
font-size: 1.05rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&-action-label {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.remote-control-loading,
|
.remote-control-loading,
|
||||||
@@ -156,11 +344,11 @@
|
|||||||
min-height: 220px;
|
min-height: 220px;
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: rgb(255 255 255 / 0.6);
|
color: rgb(255 255 255 / 0.55);
|
||||||
|
|
||||||
.material-symbols-rounded {
|
.material-symbols-rounded {
|
||||||
font-size: 2.6rem;
|
font-size: 2.4rem;
|
||||||
opacity: 0.7;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
@@ -178,23 +366,68 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.remote-control-loading .material-symbols-rounded {
|
.remote-control-loading .material-symbols-rounded {
|
||||||
color: #ff4f9a;
|
color: #ff6aa8;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 700px) {
|
@media (max-width: 700px) {
|
||||||
|
.remote-control-dialog {
|
||||||
|
border-radius: 24px !important;
|
||||||
|
}
|
||||||
|
|
||||||
.remote-control-title {
|
.remote-control-title {
|
||||||
padding: 0.9rem 0.9rem 0.5rem !important;
|
padding: 0.9rem 0.9rem 0.5rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remote-control-content {
|
.remote-control-heading > .material-symbols-rounded {
|
||||||
padding: 0.3rem 0.9rem 1rem !important;
|
width: 1.9rem;
|
||||||
|
height: 1.9rem;
|
||||||
|
font-size: 1.3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remote-control-heading-copy > span {
|
||||||
|
font-size: 0.98rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remote-control-only-badge {
|
.remote-control-only-badge {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remote-session-grid {
|
.remote-control-content {
|
||||||
grid-template-columns: 1fr;
|
padding: 0.1rem 0.55rem 0.65rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remote-control-current {
|
||||||
|
padding: 0.45rem 0.45rem 0.65rem;
|
||||||
|
|
||||||
|
&-poster {
|
||||||
|
width: 44px;
|
||||||
|
height: 58px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.remote-control-dialog .session-card {
|
||||||
|
grid-template-columns: 44px minmax(0, 1fr);
|
||||||
|
gap: 0.7rem;
|
||||||
|
padding: 0.65rem 0.45rem;
|
||||||
|
|
||||||
|
&-poster {
|
||||||
|
width: 44px;
|
||||||
|
height: 58px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-status {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-actions {
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
justify-content: flex-end;
|
||||||
|
margin-top: -0.15rem;
|
||||||
|
|
||||||
|
.session-card-action {
|
||||||
|
flex: 0 0 34px;
|
||||||
|
width: 34px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -177,12 +177,16 @@ const SessionCard = ({
|
|||||||
className="session-card-action is-primary"
|
className="session-card-action is-primary"
|
||||||
whileTap={{ scale: 0.97 }}
|
whileTap={{ scale: 0.97 }}
|
||||||
disabled={sending}
|
disabled={sending}
|
||||||
|
aria-label={sending ? "Отправляем" : "Отправить на это устройство"}
|
||||||
|
title={sending ? "Отправляем…" : "Отправить сюда"}
|
||||||
onClick={() => onSend?.(session)}
|
onClick={() => onSend?.(session)}
|
||||||
>
|
>
|
||||||
<span className="material-symbols-rounded">
|
<span className="material-symbols-rounded">
|
||||||
{sending ? "progress_activity" : "send"}
|
{sending ? "progress_activity" : "send"}
|
||||||
</span>
|
</span>
|
||||||
|
<span className="session-card-action-label">
|
||||||
{sending ? "Отправляем…" : "Отправить сюда"}
|
{sending ? "Отправляем…" : "Отправить сюда"}
|
||||||
|
</span>
|
||||||
</motion.button>
|
</motion.button>
|
||||||
)}
|
)}
|
||||||
{canTake && (
|
{canTake && (
|
||||||
@@ -191,12 +195,16 @@ const SessionCard = ({
|
|||||||
className="session-card-action"
|
className="session-card-action"
|
||||||
whileTap={{ scale: 0.97 }}
|
whileTap={{ scale: 0.97 }}
|
||||||
disabled={taking}
|
disabled={taking}
|
||||||
|
aria-label={taking ? "Забираем" : "Забрать на это устройство"}
|
||||||
|
title={taking ? "Забираем…" : "Забрать сюда"}
|
||||||
onClick={() => onTake?.(session)}
|
onClick={() => onTake?.(session)}
|
||||||
>
|
>
|
||||||
<span className="material-symbols-rounded">
|
<span className="material-symbols-rounded">
|
||||||
{taking ? "progress_activity" : "download"}
|
{taking ? "progress_activity" : "download"}
|
||||||
</span>
|
</span>
|
||||||
|
<span className="session-card-action-label">
|
||||||
{taking ? "Забираем…" : "Забрать сюда"}
|
{taking ? "Забираем…" : "Забрать сюда"}
|
||||||
|
</span>
|
||||||
</motion.button>
|
</motion.button>
|
||||||
)}
|
)}
|
||||||
{onOpenRemote && (
|
{onOpenRemote && (
|
||||||
|
|||||||
Reference in new issue
Block a user