feat: finalize channels fixes and runtime stability

This commit is contained in:
DrygMira
2026-04-13 23:00:36 +03:00
parent 0c7d8fac02
commit a9c69e5947
46 changed files with 4654 additions and 356 deletions
+703 -5
View File
@@ -31,11 +31,16 @@
.icon-btn,
.text-btn,
.primary-btn,
.secondary-btn,
.destructive-btn,
.ghost-btn {
border: 1px solid var(--line);
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: var(--radius-sm);
background: var(--card-soft);
padding: 8px 10px;
background: rgba(255, 255, 255, 0.03);
color: var(--text);
padding: 9px 12px;
min-height: 38px;
font-weight: 600;
cursor: pointer;
transition: 0.2s ease;
}
@@ -43,16 +48,49 @@
.icon-btn:hover,
.text-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.destructive-btn:hover,
.ghost-btn:hover {
border-color: var(--accent);
transform: translateY(-1px);
}
.primary-btn {
background: linear-gradient(120deg, var(--accent-soft), rgba(82, 120, 240, 0.22));
background: linear-gradient(120deg, rgba(218, 179, 87, 0.95), rgba(184, 137, 54, 0.92));
border-color: rgba(242, 210, 129, 0.72);
color: #101426;
}
.secondary-btn {
background: linear-gradient(180deg, rgba(19, 35, 63, 0.9), rgba(14, 26, 50, 0.95));
border-color: rgba(132, 162, 228, 0.42);
color: #e7efff;
}
.destructive-btn {
background: linear-gradient(120deg, rgba(129, 37, 54, 0.9), rgba(92, 23, 37, 0.94));
border-color: rgba(255, 129, 147, 0.46);
color: #ffe4ea;
}
.ghost-btn {
background: rgba(255, 255, 255, 0.03);
background: rgba(17, 26, 46, 0.62);
border-color: rgba(255, 255, 255, 0.16);
}
.icon-btn:disabled,
.text-btn:disabled,
.primary-btn:disabled,
.secondary-btn:disabled,
.destructive-btn:disabled,
.ghost-btn:disabled {
opacity: 1;
color: #93a6cc;
background: linear-gradient(180deg, rgba(18, 30, 54, 0.8), rgba(11, 20, 39, 0.86));
border-color: rgba(124, 145, 189, 0.28);
box-shadow: none;
cursor: not-allowed;
transform: none;
}
.card {
@@ -580,6 +618,11 @@
padding: 0 12px;
width: 100%;
outline: none;
color: #f3f7ff;
font-size: 16px;
line-height: 1.4;
caret-color: #f1d18a;
-webkit-text-fill-color: #f3f7ff;
}
.input:focus {
@@ -587,6 +630,45 @@
box-shadow: 0 0 0 3px rgba(83, 216, 251, 0.12);
}
.input::placeholder {
color: rgba(190, 206, 238, 0.82);
}
input.input:-webkit-autofill,
input.input:-webkit-autofill:hover,
input.input:-webkit-autofill:focus,
textarea.input:-webkit-autofill,
textarea.input:-webkit-autofill:hover,
textarea.input:-webkit-autofill:focus {
-webkit-text-fill-color: #f3f7ff !important;
caret-color: #f1d18a;
border-color: var(--line);
box-shadow: 0 0 0 1000px rgba(11, 24, 46, 0.96) inset !important;
transition: background-color 9999s ease-out 0s;
}
textarea.input {
padding: 10px 12px;
min-height: 92px;
resize: vertical;
}
.modal-title {
font-size: 19px;
line-height: 1.2;
color: #f1d69a;
}
.inline-error {
min-height: 18px;
}
.form-actions-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.small-btn {
padding: 6px 10px;
font-size: 13px;
@@ -787,6 +869,10 @@
padding: 14px;
}
.channels-screen .modal-card .input {
background: linear-gradient(180deg, rgba(16, 31, 58, 0.9), rgba(11, 22, 43, 0.94));
}
.section-title {
font-size: 14px;
font-weight: 700;
@@ -821,3 +907,615 @@
background: linear-gradient(180deg, rgba(83, 216, 251, 0.55), rgba(83, 216, 251, 0.15));
pointer-events: none;
}
.toolbar {
background:
radial-gradient(circle at 18% -120%, rgba(228, 186, 94, 0.28), transparent 48%),
linear-gradient(160deg, rgba(14, 25, 47, 0.98), rgba(7, 16, 34, 0.98));
border: 1px solid rgba(197, 160, 85, 0.38);
box-shadow: 0 18px 32px rgba(2, 6, 13, 0.62);
border-radius: 18px;
padding: 9px;
}
.toolbar-btn {
color: #b8c7ea;
border-radius: 12px;
min-height: 52px;
transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.toolbar-btn.active {
background:
linear-gradient(145deg, rgba(220, 181, 94, 0.32), rgba(39, 66, 122, 0.3)),
rgba(20, 35, 64, 0.62);
border: 1px solid rgba(220, 183, 100, 0.44);
color: #f7e2ad;
box-shadow: inset 0 1px 0 rgba(255, 242, 204, 0.42);
}
.toolbar-btn:active {
transform: translateY(1px);
}
.modal-card {
background: linear-gradient(165deg, rgba(16, 31, 58, 0.97), rgba(10, 18, 36, 0.97));
border-color: rgba(216, 179, 93, 0.4);
box-shadow: 0 20px 38px rgba(2, 6, 12, 0.55);
}
.channels-screen {
position: relative;
gap: 11px;
isolation: isolate;
}
.channels-screen::before {
content: "";
position: absolute;
inset: -24px -18px 0;
z-index: -1;
pointer-events: none;
background:
radial-gradient(circle at 16% -4%, rgba(232, 191, 92, 0.22), transparent 40%),
radial-gradient(circle at 80% 6%, rgba(77, 114, 189, 0.35), transparent 39%),
radial-gradient(circle at 52% 22%, rgba(13, 33, 70, 0.54), transparent 44%),
linear-gradient(180deg, rgba(4, 11, 24, 0.92), rgba(4, 11, 23, 0.4) 46%, transparent 100%);
}
.channels-screen .page-header {
margin-bottom: 0;
align-items: flex-end;
}
.channels-screen .page-header .icon-btn,
.channels-screen .page-header .text-btn {
background: linear-gradient(180deg, rgba(20, 37, 67, 0.9), rgba(13, 24, 47, 0.94));
border-color: rgba(146, 173, 229, 0.38);
color: #d9e6ff;
}
.channels-screen .page-title {
font-size: 29px;
line-height: 1.05;
font-family: "Cormorant Garamond", "Times New Roman", serif;
letter-spacing: 0.01em;
color: #f5db9e;
text-shadow: 0 10px 20px rgba(0, 0, 0, 0.48);
}
.channels-screen--list .page-title {
font-size: 37px;
line-height: 0.95;
}
.channels-screen .card {
background:
linear-gradient(168deg, rgba(16, 31, 58, 0.95), rgba(8, 17, 34, 0.98)),
radial-gradient(circle at 50% 0%, rgba(53, 90, 165, 0.2), transparent 52%);
border: 1px solid rgba(176, 144, 74, 0.3);
box-shadow: 0 14px 30px rgba(2, 7, 15, 0.54);
}
.channels-screen .meta-muted {
color: #c3cfea;
}
.channels-screen .status-line.is-unavailable {
color: #ffd9e1;
}
.channels-hero {
display: grid;
grid-template-columns: auto 1fr;
gap: 12px;
align-items: center;
padding: 12px;
border-color: rgba(214, 177, 95, 0.42);
box-shadow: 0 14px 30px rgba(4, 9, 20, 0.54);
}
.channels-hero-emblem {
position: relative;
width: 62px;
height: 62px;
border-radius: 50%;
border: 1px solid rgba(220, 182, 98, 0.64);
background:
radial-gradient(circle at 45% 40%, rgba(247, 217, 145, 0.9), rgba(199, 146, 61, 0.95) 46%, rgba(127, 88, 36, 0.96) 100%);
box-shadow:
inset 0 0 0 5px rgba(20, 38, 74, 0.76),
0 10px 20px rgba(3, 7, 16, 0.52);
}
.channels-hero-emblem::before,
.channels-hero-emblem::after {
content: "";
position: absolute;
inset: 14px;
border-radius: 50%;
border: 2px solid rgba(27, 47, 85, 0.74);
}
.channels-hero-emblem::after {
inset: 7px;
border-width: 1px;
border-color: rgba(228, 192, 109, 0.66);
}
.channels-hero-copy {
min-width: 0;
display: grid;
gap: 2px;
}
.channels-hero-kicker {
font-size: 11px;
letter-spacing: 0.16em;
text-transform: uppercase;
color: #e8cc8f;
}
.channels-hero-title {
font-family: "Cormorant Garamond", "Times New Roman", serif;
font-size: 26px;
line-height: 1;
color: #f4ddab;
}
.channels-hero-subtitle {
color: #afc1e3;
font-size: 12px;
line-height: 1.35;
}
.channels-user-chip {
display: flex;
align-items: center;
gap: 9px;
color: #e9f0ff;
min-height: 46px;
font-size: 15px;
}
.channels-user-chip::before {
content: "";
width: 9px;
height: 9px;
border-radius: 50%;
background: #ddb86f;
box-shadow: 0 0 0 6px rgba(221, 184, 111, 0.2);
}
.channels-help-card strong {
font-size: 17px;
color: #f3d79c;
font-family: "Cormorant Garamond", "Times New Roman", serif;
}
.channels-help-card .meta-muted {
line-height: 1.34;
font-size: 13px;
}
.channels-help-card {
gap: 6px;
padding-top: 12px;
padding-bottom: 12px;
}
.channels-info-strip {
border-radius: 14px;
padding: 10px 13px;
color: #ead3a0;
border: 1px solid rgba(214, 175, 89, 0.4);
background: linear-gradient(134deg, rgba(180, 140, 62, 0.22), rgba(23, 44, 84, 0.3));
font-size: 12px;
line-height: 1.35;
}
.channels-action-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 9px;
}
.channels-action-btn {
min-height: 50px;
border-radius: 999px;
text-align: center;
line-height: 1.25;
padding: 9px 10px;
font-weight: 700;
letter-spacing: 0.01em;
font-size: 13px;
}
.channels-action-btn.primary-btn {
box-shadow: inset 0 1px 0 rgba(255, 247, 214, 0.6), 0 10px 18px rgba(5, 8, 16, 0.46);
}
.channels-action-btn.destructive-btn {
border-color: rgba(248, 141, 163, 0.5);
background: linear-gradient(120deg, rgba(126, 31, 52, 0.94), rgba(88, 22, 37, 0.95));
box-shadow: inset 0 1px 0 rgba(171, 198, 255, 0.26), 0 9px 16px rgba(5, 8, 16, 0.36);
}
.channels-scroll-wrap {
max-height: none;
padding-right: 8px;
}
.channels-groups {
gap: 11px;
}
.channels-section {
gap: 8px;
}
.channels-section .section-title {
font-size: 21px;
color: #f2d395;
margin: 0 2px;
font-family: "Cormorant Garamond", "Times New Roman", serif;
letter-spacing: 0.01em;
}
.channels-list-empty {
border: 1px dashed rgba(209, 172, 87, 0.35);
border-radius: var(--radius-md);
padding: 12px;
color: #aeb9d8;
background: rgba(10, 18, 36, 0.5);
}
.channels-divider {
border-top-color: rgba(211, 170, 86, 0.22);
margin: 2px 0;
}
.channel-row {
display: grid;
grid-template-columns: 46px minmax(0, 1fr) 72px;
gap: 12px;
padding: 14px 13px;
border-radius: 16px;
border: 1px solid rgba(193, 157, 82, 0.28);
background:
linear-gradient(150deg, rgba(16, 31, 58, 0.9), rgba(10, 20, 40, 0.94)),
radial-gradient(circle at 100% 0%, rgba(72, 106, 179, 0.22), transparent 46%);
cursor: pointer;
transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.channel-row:hover {
border-color: rgba(224, 188, 106, 0.52);
box-shadow: 0 10px 22px rgba(2, 8, 16, 0.44);
transform: translateY(-1px);
}
.channel-row .avatar {
width: 42px;
height: 42px;
min-width: 42px;
min-height: 42px;
background: linear-gradient(138deg, #efd193, #c18c42);
color: #17233f;
box-shadow: inset 0 1px 0 rgba(255, 244, 208, 0.58);
}
.channel-row-main {
min-width: 0;
display: grid;
gap: 4px;
}
.channel-row-title {
font-size: 18px;
color: #f5daa0;
line-height: 1.2;
letter-spacing: 0.01em;
}
.channel-row-description {
font-size: 11px;
color: #9db0dc;
word-break: break-word;
opacity: 0.95;
}
.channel-row-message {
color: #e5eeff;
font-size: 14px;
line-height: 1.35;
word-break: break-word;
min-height: 18px;
}
.channel-row-owner {
font-size: 12px;
color: #bdcdeb;
}
.channel-row-meta {
display: grid;
justify-items: center;
align-content: start;
gap: 6px;
}
.channel-row-kind {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.08em;
padding: 4px 8px;
border-radius: 999px;
border: 1px solid rgba(205, 166, 86, 0.42);
color: #f1d49a;
background: rgba(191, 149, 66, 0.16);
}
.channel-row-time {
font-size: 11px;
color: #96a7ce;
}
.channel-row-count {
min-width: 28px;
justify-content: center;
background: linear-gradient(140deg, rgba(223, 186, 98, 0.95), rgba(199, 155, 75, 0.95));
color: #17203a;
}
.channels-bottom-action {
margin-top: 6px;
min-height: 48px;
border-radius: 13px;
font-size: 14px;
}
.channels-status {
border-color: rgba(227, 127, 144, 0.45);
background: linear-gradient(165deg, rgba(68, 24, 36, 0.55), rgba(19, 17, 33, 0.82));
}
.channel-head-card {
display: grid;
gap: 6px;
}
.channel-head-title {
font-size: 24px;
color: #f0d089;
line-height: 1.1;
font-family: "Cormorant Garamond", "Times New Roman", serif;
}
.channel-head-meta {
font-size: 13px;
color: #aebddd;
}
.channel-note {
font-size: 13px;
color: #e8d8b0;
line-height: 1.4;
}
.channel-feed {
gap: 10px;
}
.channel-message-card {
gap: 9px;
padding: 13px;
border-radius: 16px;
border-color: rgba(182, 149, 78, 0.3);
}
.channel-message-title {
font-size: 15px;
color: #f2dcab;
}
.channel-message-body {
color: #eef3ff;
line-height: 1.45;
font-size: 14px;
white-space: pre-wrap;
word-break: break-word;
border-radius: 10px;
padding: 8px 10px;
background: linear-gradient(170deg, rgba(22, 40, 73, 0.75), rgba(12, 25, 48, 0.78));
border: 1px solid rgba(116, 141, 193, 0.26);
}
.channel-message-stats {
font-size: 12px;
color: #9fb2dc;
}
.channel-message-actions {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
}
.channel-message-actions .secondary-btn,
.thread-node-actions .secondary-btn {
min-height: 40px;
padding: 8px 9px;
font-size: 13px;
}
.thread-summary {
color: #efd9a4;
border-color: rgba(212, 171, 90, 0.36);
background: linear-gradient(130deg, rgba(178, 137, 58, 0.2), rgba(24, 41, 74, 0.24));
}
.thread-node-card {
gap: 9px;
border-radius: 16px;
border-color: rgba(183, 150, 79, 0.3);
}
.thread-node-heading {
color: #f1dcab;
font-size: 15px;
}
.thread-node-meta {
color: #aebddd;
font-size: 12px;
}
.thread-node-body {
color: #eef3ff;
font-size: 14px;
line-height: 1.45;
white-space: pre-wrap;
word-break: break-word;
border-radius: 10px;
padding: 8px 10px;
background: linear-gradient(170deg, rgba(22, 40, 73, 0.72), rgba(12, 25, 48, 0.78));
border: 1px solid rgba(116, 141, 193, 0.24);
}
.thread-node-stats {
color: #99acd6;
font-size: 12px;
}
.thread-node-actions {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
.thread-node-level {
margin-left: calc(min(var(--depth, 0), 4) * 12px);
}
.thread-block {
gap: 8px;
border-radius: 15px;
padding: 10px;
border: 1px solid rgba(151, 174, 221, 0.2);
background: linear-gradient(160deg, rgba(10, 21, 43, 0.72), rgba(8, 16, 31, 0.78));
}
.thread-block--ancestors > .section-title {
color: #b9cbef;
}
.thread-block--ancestors {
border-color: rgba(141, 166, 214, 0.26);
background: linear-gradient(160deg, rgba(12, 28, 56, 0.73), rgba(7, 15, 32, 0.78));
}
.thread-block--focus > .section-title {
color: #f0d9a4;
}
.thread-block--focus {
border-color: rgba(214, 177, 95, 0.34);
background: linear-gradient(160deg, rgba(33, 44, 72, 0.68), rgba(12, 20, 36, 0.8));
}
.thread-block--replies > .section-title {
color: #c8d6f5;
}
.thread-block--replies {
border-color: rgba(161, 186, 233, 0.24);
}
.channel-main-action {
min-height: 48px;
border-radius: 13px;
}
.channel-back-btn {
min-height: 44px;
}
.channel-action-like.is-liked,
.thread-like-btn.is-liked {
background: linear-gradient(120deg, rgba(128, 39, 56, 0.92), rgba(92, 26, 39, 0.94));
border-color: rgba(250, 145, 165, 0.54);
color: #ffe5ec;
}
.channel-action-reply,
.thread-reply-btn {
border-color: rgba(152, 181, 240, 0.48);
}
.channel-action-thread {
border-color: rgba(216, 178, 95, 0.5);
color: #f3ddac;
}
@media (max-width: 430px) {
.channels-screen .page-title {
font-size: 26px;
}
.channels-screen--list .page-title {
font-size: 34px;
}
.channels-hero-title {
font-size: 24px;
}
.channels-action-btn {
min-height: 48px;
font-size: 12px;
}
.channel-row {
grid-template-columns: 40px minmax(0, 1fr) 64px;
gap: 10px;
padding: 12px;
}
.channel-row .avatar {
width: 38px;
height: 38px;
min-width: 38px;
min-height: 38px;
}
.channel-row-title {
font-size: 16px;
}
.channel-row-message {
font-size: 13px;
}
.channel-message-actions {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 365px) {
.channels-screen .page-title {
font-size: 24px;
}
.channels-action-grid {
grid-template-columns: 1fr;
}
.channel-message-actions {
grid-template-columns: 1fr;
}
.thread-node-actions {
grid-template-columns: 1fr;
}
}
+6 -4
View File
@@ -7,9 +7,11 @@ body {
width: min(100vw, 430px);
height: 100dvh;
position: relative;
background: linear-gradient(165deg, rgba(16, 22, 36, 0.96), rgba(11, 16, 27, 0.99));
border-left: 1px solid rgba(255, 255, 255, 0.05);
border-right: 1px solid rgba(255, 255, 255, 0.05);
background:
radial-gradient(circle at 16% -8%, rgba(211, 168, 76, 0.16), transparent 38%),
linear-gradient(165deg, rgba(10, 21, 44, 0.98), rgba(5, 11, 24, 0.99));
border-left: 1px solid rgba(211, 170, 86, 0.2);
border-right: 1px solid rgba(211, 170, 86, 0.2);
box-shadow: var(--shadow);
overflow: hidden;
}
@@ -36,7 +38,7 @@ body {
right: 0;
bottom: 0;
padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
background: linear-gradient(180deg, rgba(10, 14, 23, 0) 0%, rgba(10, 14, 23, 0.95) 42%);
background: linear-gradient(180deg, rgba(7, 12, 23, 0) 0%, rgba(6, 11, 22, 0.96) 44%);
}
@media (min-width: 900px) {
+14 -11
View File
@@ -1,14 +1,14 @@
:root {
--bg-0: #080b12;
--bg-1: #101624;
--bg-2: #171f32;
--card: #1a2436;
--card-soft: #202d45;
--line: #2a3854;
--text: #ebf1ff;
--text-muted: #99a8cb;
--accent: #53d8fb;
--accent-soft: rgba(83, 216, 251, 0.17);
--bg-0: #050c1a;
--bg-1: #0a1630;
--bg-2: #132346;
--card: #162646;
--card-soft: #1a2f55;
--line: #2f4777;
--text: #edf2ff;
--text-muted: #9eb0d8;
--accent: #d9b56f;
--accent-soft: rgba(217, 181, 111, 0.18);
--danger: #ff718f;
--ok: #84f4a1;
--radius-lg: 18px;
@@ -27,7 +27,10 @@ body {
margin: 0;
padding: 0;
min-height: 100%;
background: radial-gradient(circle at 22% -10%, #1f355e 0%, var(--bg-0) 45%) fixed;
background:
radial-gradient(circle at 12% -8%, rgba(214, 176, 90, 0.24), transparent 35%),
radial-gradient(circle at 84% 4%, rgba(43, 78, 148, 0.42), transparent 38%),
linear-gradient(180deg, #050b18, #030812 70%) fixed;
color: var(--text);
font-family: var(--font-main);
}