UI: полные счётчики ответов, поле сообщения как в Telegram, переключатель «Связей», шапка

- Счётчик ответов – по всем уровням: обсуждение считает по дереву, лента берёт итог из обсуждения
  (кэш или фоновая подгрузка видимых записей, они же потом открываются сразу).
  Сервер пока отдаёт только прямые ответы.
- Чат: поле-«таблетка» растёт плавно (высота меряется по скрытой копии, без сброса в auto),
  смайлик внутри поля справа внизу, «Отправить» 44 px по низу; убраны правила перестройки
  в две колонки.
- «Связи»: фильтры – общий блок-переключатель (.tabs), как на других вкладках, всё помещается.
- Шапка: название крупнее и жирнее, подпись под ним компактнее.
This commit is contained in:
q
2026-10-12 09:45:08 +03:00
parent 9ea276ba77
commit 923f281bf6
10 changed files with 201 additions and 105 deletions
+2 -2
View File
@@ -24,5 +24,5 @@
.topbar-identity { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; min-height: 44px; padding: 0 4px; border: 0; border-radius: 12px; background: transparent; color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; }
.topbar-identity:disabled { cursor: default; }
.topbar-identity__text { display: grid; min-width: 0; }
.topbar-identity__title { font-size: 1rem; line-height: 1.3; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-identity__sub { margin-top: 2px; color: var(--text-secondary); font-size: .75rem; line-height: 1.125rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-identity__title { font-size: 1.0625rem; line-height: 1.3; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-identity__sub { margin-top: 0; color: var(--text-secondary); font-size: .75rem; line-height: 1rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+43 -47
View File
@@ -380,24 +380,6 @@
}
.dm-chat-input--multiline .dm-actions-col {
grid-template-columns: 46px;
grid-template-rows: repeat(2, 46px);
grid-template-areas:
"emoji"
"send";
}
.dm-emoji-btn {
grid-area: emoji;
min-width: 46px;
width: 46px;
padding: 0;
line-height: 1;
}
.dm-emoji-btn__glyph {
display: inline-grid;
place-items: center;
@@ -463,11 +445,6 @@
}
.dm-chat-input--multiline .dm-input {
padding-right: 14px;
}
.dm-chat-input .dm-input::-webkit-scrollbar {
width: 0;
height: 0;
@@ -495,16 +472,6 @@
}
.dm-send-icon-btn {
grid-area: send;
min-width: 46px;
width: 46px;
padding: 0;
font-size: 15px;
line-height: 1;
}
.dm-message-actions-popover {
position: fixed;
left: 12px;
@@ -866,16 +833,6 @@
}
.dm-chat-input--multiline .dm-actions-col {
grid-template-columns: 43px;
}
.dm-emoji-btn,
.dm-send-icon-btn {
min-width: 43px;
width: 43px;
}
@@ -999,10 +956,6 @@
}
}
.dm-chat-input--multiline .dm-file-btn {
right: 0;
bottom: 104px;
}
/* ===== DM file transfer v2 + voice notes ===== */
.dm-attachment-stack {
@@ -1355,3 +1308,46 @@
.composer-slot:has(> .dm-chat-input) { padding-inline: var(--page-gutter); }
.dm-chat-input .dm-send-btn { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
/* ===== Поле сообщения (как в Telegram) =====
* Поле-«таблетка» растёт плавно по строкам, смайлик внутри поля справа внизу,
* «Отправить» – круг 44 px, выровнен по низу поля. Раскладка не перестраивается при переносе строк. */
.dm-field { position: relative; min-width: 0; display: grid; align-self: end; }
.dm-chat-input .dm-field .dm-input {
min-height: 44px;
padding: 11px 48px 11px 16px;
border-radius: 22px;
line-height: 20px;
transition: height 140ms ease-out, border-color var(--duration-fast) ease;
}
.dm-chat-input .dm-field .dm-input-measure {
position: absolute;
left: 0;
top: 0;
height: 0;
min-height: 0;
overflow: hidden;
visibility: hidden;
pointer-events: none;
transition: none;
}
.dm-chat-input .dm-field .dm-emoji-btn {
position: absolute;
right: 4px;
bottom: 4px;
width: 36px;
min-width: 36px;
height: 36px;
min-height: 36px;
padding: 0;
border: 0;
border-radius: 50%;
background: transparent;
line-height: 1;
}
.dm-chat-input .dm-field .dm-emoji-btn__glyph { font-size: 23px; }
.dm-chat-input .dm-field .dm-emoji-btn:hover { background: var(--surface-selected); }
.dm-chat-input .dm-actions-col { display: flex; align-items: flex-end; gap: 6px; }
.dm-chat-input .dm-send-btn svg { width: 24px; height: 24px; }
.dm-chat-input .dm-send-btn[data-mode='send'] svg { transform: translateX(-1px) rotate(0deg); }
@media (prefers-reduced-motion: reduce) { .dm-chat-input .dm-field .dm-input { transition: none; } }
-12
View File
@@ -405,11 +405,6 @@ button.dm-via-node:hover { border-color: color-mix(in srgb, var(--rel-link) 50%,
.dm-actions-col {
position: relative;
display: grid;
grid-template-columns: repeat(2, 46px);
grid-template-rows: 46px;
grid-template-areas: "emoji send";
gap: 6px;
align-self: end;
}
@@ -615,13 +610,6 @@ button.dm-via-node:hover { border-color: color-mix(in srgb, var(--rel-link) 50%,
}
.dm-actions-col {
grid-template-columns: repeat(2, 43px);
grid-template-rows: 46px;
gap: 2px;
}
/* Loader не имеет права участвовать в растяжении пустого flex-контейнера. */
.dm-history-loader {
flex: 0 0 34px;
+7 -7
View File
@@ -390,13 +390,13 @@
.network-stage > .fg-filter-bar.app-top-tabs {
left: 0;
right: 0;
justify-content: flex-start;
flex-wrap: nowrap;
overflow-x: auto;
padding-inline: var(--page-gutter);
scrollbar-width: none;
pointer-events: auto;
-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}
.network-stage > .fg-filter-bar.app-top-tabs::-webkit-scrollbar { display: none; }
/* Тот же блок-переключатель, что на других вкладках: на всю ширину, все пункты видны. */
.network-stage .fg-filter-tabs { width: 100%; }
.network-stage .fg-filter-tabs .tab-btn:disabled { opacity: .45; cursor: default; }
@media (max-width: 360px) {
/* На самых узких экранах длинный пункт («Друзья друзей») переносится, а не обрезается. */
.network-stage .fg-filter-tabs .tab-btn { white-space: normal; line-height: 1.1; }
}