diff --git a/src/components/remoteControl/index.tsx b/src/components/remoteControl/index.tsx
index eb44119..06a2a85 100644
--- a/src/components/remoteControl/index.tsx
+++ b/src/components/remoteControl/index.tsx
@@ -150,8 +150,8 @@ const RemoteControlDialog = () => {
{item ? "Передать медиа" : "Устройства Blink"}
- {activeSessions.length} Blink
- {activeSessions.length === 1 ? " устройство" : " устройств"}
+ {activeSessions.length}{" "}
+ {activeSessions.length === 1 ? "устройство" : "устройств"} Blink
diff --git a/src/components/remoteControl/remoteControl.scss b/src/components/remoteControl/remoteControl.scss
index 4cef937..f9933ad 100644
--- a/src/components/remoteControl/remoteControl.scss
+++ b/src/components/remoteControl/remoteControl.scss
@@ -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 {
- background:
- radial-gradient(circle at 12% 0%, rgb(255 79 154 / 0.16), transparent 38%),
- radial-gradient(circle at 88% 8%, rgb(120 92 255 / 0.16), transparent 42%),
- rgb(12 11 22 / 0.9) !important;
- border: 1px solid rgb(255 255 255 / 0.12);
+ background: linear-gradient(
+ 180deg,
+ rgb(46 46 50 / 0.94),
+ rgb(33 33 37 / 0.97)
+ ) !important;
+ border: 1px solid rgb(255 255 255 / 0.075) !important;
+ border-radius: 30px !important;
box-shadow:
- 0 30px 90px rgb(0 0 0 / 0.6),
- inset 0 1px 0 rgb(255 255 255 / 0.08);
+ 0 30px 80px rgb(0 0 0 / 0.6),
+ 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;
+ color: #fff;
}
.remote-control-title {
@@ -15,41 +23,42 @@
align-items: center;
justify-content: space-between;
gap: 1rem;
- padding: 1.1rem 1.25rem 0.7rem !important;
+ padding: 1.15rem 1.3rem 0.75rem !important;
}
.remote-control-heading {
display: flex;
align-items: center;
- gap: 0.7rem;
+ gap: 0.75rem;
min-width: 0;
> .material-symbols-rounded {
- width: 2.4rem;
- height: 2.4rem;
+ width: 2.2rem;
+ height: 2.2rem;
display: grid;
place-items: center;
- border-radius: 12px;
- background: rgb(255 255 255 / 0.08);
- border: 1px solid rgb(255 255 255 / 0.1);
- color: rgb(255 255 255 / 0.9);
+ border-radius: 0;
+ background: transparent;
+ border: 0;
+ color: #ff6aa8;
+ font-size: 1.45rem;
}
&-copy {
display: flex;
flex-direction: column;
- gap: 0.1rem;
+ gap: 0.15rem;
min-width: 0;
> span {
- font-size: 1rem;
+ font-size: 1.05rem;
font-weight: 650;
- letter-spacing: -0.01em;
+ letter-spacing: -0.015em;
}
> small {
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 {
display: flex;
align-items: center;
- gap: 0.35rem;
+ gap: 0.2rem;
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 {
- padding: 0.22rem 0.6rem;
- border-radius: 999px;
- font-size: 0.64rem;
+ padding: 0;
+ border: 0;
+ border-radius: 0;
+ font-size: 0.62rem;
font-weight: 650;
- letter-spacing: 0.04em;
- color: #ffd0e7;
- background: rgb(255 79 154 / 0.12);
- border: 1px solid rgb(255 79 154 / 0.22);
+ letter-spacing: 0.09em;
+ text-transform: uppercase;
+ color: rgb(255 255 255 / 0.34);
+ background: transparent;
white-space: nowrap;
}
.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 {
display: flex;
align-items: center;
gap: 0.8rem;
- margin-bottom: 1rem;
- padding: 0.65rem;
- border-radius: 16px;
- background:
- linear-gradient(135deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.02)),
- rgb(255 255 255 / 0.02);
- border: 1px solid rgb(255 255 255 / 0.09);
- box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
+ margin: 0;
+ padding: 0.55rem 0.55rem 0.8rem;
+ border: 0;
+ border-bottom: 1px solid rgb(255 255 255 / 0.07);
+ border-radius: 0;
+ background: transparent;
+ box-shadow: none;
&-poster {
- width: 52px;
- height: 72px;
+ width: 48px;
+ height: 64px;
flex: 0 0 auto;
display: grid;
place-items: center;
overflow: hidden;
border-radius: 10px;
- background: rgb(255 255 255 / 0.07);
- color: rgb(255 255 255 / 0.6);
+ background: rgb(255 255 255 / 0.06);
+ color: rgb(255 255 255 / 0.55);
> img {
width: 100%;
@@ -108,7 +135,7 @@
}
.material-symbols-rounded {
- font-size: 1.6rem;
+ font-size: 1.5rem;
}
}
@@ -119,10 +146,10 @@
min-width: 0;
> span {
- font-size: 0.64rem;
+ font-size: 0.62rem;
letter-spacing: 0.08em;
text-transform: uppercase;
- color: rgb(255 255 255 / 0.42);
+ color: rgb(255 255 255 / 0.38);
}
> strong {
@@ -135,15 +162,176 @@
> small {
font-size: 0.7rem;
- color: rgb(255 255 255 / 0.5);
+ color: rgb(255 255 255 / 0.45);
}
}
}
.remote-session-grid {
- display: grid;
- grid-template-columns: 1fr;
- gap: 0.7rem;
+ display: flex;
+ flex-direction: column;
+ 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,
@@ -156,11 +344,11 @@
min-height: 220px;
padding: 1.5rem;
text-align: center;
- color: rgb(255 255 255 / 0.6);
+ color: rgb(255 255 255 / 0.55);
.material-symbols-rounded {
- font-size: 2.6rem;
- opacity: 0.7;
+ font-size: 2.4rem;
+ opacity: 0.6;
}
h3 {
@@ -178,23 +366,68 @@
}
.remote-control-loading .material-symbols-rounded {
- color: #ff4f9a;
+ color: #ff6aa8;
}
@media (max-width: 700px) {
+ .remote-control-dialog {
+ border-radius: 24px !important;
+ }
+
.remote-control-title {
padding: 0.9rem 0.9rem 0.5rem !important;
}
- .remote-control-content {
- padding: 0.3rem 0.9rem 1rem !important;
+ .remote-control-heading > .material-symbols-rounded {
+ width: 1.9rem;
+ height: 1.9rem;
+ font-size: 1.3rem;
+ }
+
+ .remote-control-heading-copy > span {
+ font-size: 0.98rem;
}
.remote-control-only-badge {
display: none;
}
- .remote-session-grid {
- grid-template-columns: 1fr;
+ .remote-control-content {
+ 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;
+ }
+ }
}
}
diff --git a/src/components/remoteControl/sessionCard.tsx b/src/components/remoteControl/sessionCard.tsx
index 79a9b03..0681992 100644
--- a/src/components/remoteControl/sessionCard.tsx
+++ b/src/components/remoteControl/sessionCard.tsx
@@ -177,12 +177,16 @@ const SessionCard = ({
className="session-card-action is-primary"
whileTap={{ scale: 0.97 }}
disabled={sending}
+ aria-label={sending ? "Отправляем" : "Отправить на это устройство"}
+ title={sending ? "Отправляем…" : "Отправить сюда"}
onClick={() => onSend?.(session)}
>
{sending ? "progress_activity" : "send"}
- {sending ? "Отправляем…" : "Отправить сюда"}
+
+ {sending ? "Отправляем…" : "Отправить сюда"}
+
)}
{canTake && (
@@ -191,12 +195,16 @@ const SessionCard = ({
className="session-card-action"
whileTap={{ scale: 0.97 }}
disabled={taking}
+ aria-label={taking ? "Забираем" : "Забрать на это устройство"}
+ title={taking ? "Забираем…" : "Забрать сюда"}
onClick={() => onTake?.(session)}
>
{taking ? "progress_activity" : "download"}
- {taking ? "Забираем…" : "Забрать сюда"}
+
+ {taking ? "Забираем…" : "Забрать сюда"}
+
)}
{onOpenRemote && (