SHA256
UI: четыре кнопки как в Threads, строка ответа и редактор по их образцу
Под записями и ответами – лайк, ответы, репост, поделиться. Репост в блокчейне ещё дорабатывается: кнопка на месте и пока сообщает «Репосты скоро появятся» (переключатель REPOSTS_ENABLED в channels-ux.js). Строка ответа внизу обсуждения: аватар, «Ответьте …», «фото/файл» (редактор сразу с выбором файла) и «развернуть». Редактор: текст пишется прямо под именем, без рамки; под текстом – иконка вложения и «Очистить черновик»; внизу – счётчик и кнопка отправки.
This commit is contained in:
@@ -168,31 +168,19 @@
|
||||
min-height: calc(68px + env(safe-area-inset-bottom));
|
||||
padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
background: var(--background);
|
||||
}
|
||||
|
||||
.channel-editor__attach,
|
||||
.channel-editor__submit {
|
||||
min-height: 44px;
|
||||
padding: 0 14px;
|
||||
border-radius: 12px;
|
||||
padding: 0 18px;
|
||||
border-radius: 22px;
|
||||
}
|
||||
|
||||
.channel-editor__attach {
|
||||
width: 44px;
|
||||
padding: 0;
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
color: var(--accent);
|
||||
border: 1px solid var(--border-control);
|
||||
background: var(--surface);
|
||||
}
|
||||
.channel-editor__attach svg { width: 22px; height: 22px; stroke-width: 1.9; }
|
||||
|
||||
.channel-editor__submit {
|
||||
color: var(--on-accent);
|
||||
background: var(--accent);
|
||||
@@ -204,7 +192,7 @@
|
||||
background: var(--surface-selected);
|
||||
}
|
||||
|
||||
.channel-editor__footer.has-extra { grid-template-columns: auto auto minmax(0, 1fr) auto; }
|
||||
.channel-editor__footer.has-extra { grid-template-columns: auto minmax(0, 1fr) auto; }
|
||||
.channel-editor__type { display: block; min-width: 0; }
|
||||
.channel-editor__type-select { min-height: 44px; width: auto; max-width: 9.5rem; padding-left: 12px; border-radius: 12px; font-size: .875rem; }
|
||||
|
||||
@@ -228,11 +216,7 @@
|
||||
}
|
||||
|
||||
@media (max-width: 400px) {
|
||||
.channel-editor__footer.has-extra { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 8px; }
|
||||
.channel-editor__footer.has-extra .channel-editor__type { grid-row: 1; grid-column: 1 / 3; }
|
||||
.channel-editor__footer.has-extra .channel-editor__counter { grid-row: 1; grid-column: 3; }
|
||||
.channel-editor__footer.has-extra .channel-editor__attach { grid-row: 2; grid-column: 1; }
|
||||
.channel-editor__footer.has-extra .channel-editor__submit { grid-row: 2; grid-column: 3; }
|
||||
.channel-editor__footer.has-extra .channel-editor__counter { display: none; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
@@ -242,3 +226,13 @@
|
||||
.channel-editor__author-text small { color: var(--text-secondary); font-size: .75rem; }
|
||||
.channel-editor__draft { justify-self: end; color: var(--text-secondary); font-size: .75rem; }
|
||||
.channel-editor__close svg { width: 24px; height: 24px; }
|
||||
|
||||
/* Поле ввода как в Threads: без рамки, под именем автора, с отступом под аватар; вложения и «прикрепить» – ниже текста. */
|
||||
.channel-editor__compose { display: grid; gap: 8px; margin: -8px 0 0 52px; }
|
||||
.channel-editor__compose .channel-editor__input { min-height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; }
|
||||
.channel-editor__compose .channel-editor__input:focus-visible { border: 0; }
|
||||
.channel-editor__tools { display: flex; align-items: center; gap: 4px; margin-left: -10px; }
|
||||
.channel-editor__tools .channel-editor__attach { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--text-secondary); }
|
||||
.channel-editor__tools .channel-editor__attach:hover { color: var(--text-primary); }
|
||||
.channel-editor__tools .channel-editor__clear { margin-left: auto; }
|
||||
.channel-editor__tools .channel-editor__attach svg { width: 22px; height: 22px; }
|
||||
|
||||
Reference in New Issue
Block a user