SHA256
UI: каналы и обсуждения в раскладке Threads
Лента канала: у записи аватар и название канала слева сверху, возраст записи («5 мин», «2 ч», «3 д») и «⋯» в шапке, текст и действия колонкой под названием, порядок действий – лайк, обсуждение, поделиться. Обсуждение: открытая запись с шапкой канала и крупным текстом; ответы деревом – под каждым ответом его ветка со сдвигом и линией от аватара, ответ на ответ помечен адресатом, если идёт не сразу после него; в ветке видно два ответа, остальные по «Ещё N ответов». Дерево грузится на 8 уровней вместо 2 (раньше ответы глубже второго уровня не показывались), что глубже – кнопкой открывается обсуждением этого ответа.
This commit is contained in:
@@ -11,22 +11,39 @@
|
||||
.thread-context__open svg { width: 14px; height: 14px; }
|
||||
|
||||
.thread-section-title { margin: 12px 0 4px; font-size: .8125rem; font-weight: 600; color: var(--text-primary); }
|
||||
.channels-screen .thread-comment { display: block; margin: 0 calc(-1 * var(--page-gutter)); padding: 7px var(--page-gutter) 5px; border: 0; border-radius: 0; background: transparent; scroll-margin: 16px; }
|
||||
.channels-screen .thread-comment + .thread-comment { border-top: 1px solid var(--divider-soft); }
|
||||
.thread-comment.is-highlight { background: var(--surface-selected); box-shadow: inset 3px 0 var(--accent); }
|
||||
.thread-comment__person { display: flex; align-items: center; gap: 7px; min-height: 26px; margin-bottom: 4px; font-size: .875rem; font-weight: 600; }
|
||||
.thread-comment__who { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text-primary); font: inherit; cursor: pointer; }
|
||||
.thread-comment__who .avatar.thread-comment__avatar { width: 24px; height: 24px; min-width: 24px; min-height: 24px; font-size: 11px; }
|
||||
.thread-comment__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
|
||||
.thread-comment__badge { padding: 1px 5px; border-radius: 5px; background: var(--surface-selected); color: var(--action); font-size: .625rem; font-weight: 400; white-space: nowrap; }
|
||||
.thread-comment__person time { margin-left: auto; flex-shrink: 0; color: var(--text-secondary); font-size: .75rem; font-weight: 400; }
|
||||
.thread-comment__text { margin: 0; font-size: .9375rem; line-height: 1.4375rem; white-space: pre-wrap; overflow-wrap: anywhere; }
|
||||
.thread-comment__actions { display: flex; align-items: center; gap: 12px; margin-top: 2px; color: var(--text-secondary); }
|
||||
.thread-comment__actions > button { min-height: 32px; min-width: 32px; padding: 0 4px; display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: .75rem; cursor: pointer; }
|
||||
.thread-comment__actions .thread-comment__reply { padding-left: 0; color: var(--action); }
|
||||
.thread-comment__actions svg { width: 21px; height: 21px; }
|
||||
.thread-comment__actions .thread-comment__more { margin-left: auto; }
|
||||
.thread-comment__actions .thread-comment__more svg { width: 24px; height: 24px; }
|
||||
.thread-group { position: relative; padding: 12px 0 6px; }
|
||||
.thread-group + .thread-group { border-top: 1px solid var(--border-subtle); }
|
||||
.channels-screen .thread-comment { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; scroll-margin: 16px; }
|
||||
.channels-screen .thread-comment--nested { grid-template-columns: 28px minmax(0, 1fr); margin-top: 10px; }
|
||||
.thread-comment.is-highlight { background: var(--surface-selected); box-shadow: 0 0 0 6px var(--surface-selected); border-radius: 4px; }
|
||||
.thread-comment__who { align-self: start; padding: 0; border: 0; background: transparent; cursor: pointer; }
|
||||
.thread-comment__who .avatar.thread-comment__avatar { width: 36px; height: 36px; min-width: 36px; min-height: 36px; font-size: 14px; }
|
||||
.thread-comment--nested .thread-comment__who .avatar.thread-comment__avatar { width: 28px; height: 28px; min-width: 28px; min-height: 28px; font-size: 12px; }
|
||||
.thread-comment__main { min-width: 0; }
|
||||
.thread-comment__head { display: flex; align-items: center; gap: 6px; min-height: 22px; }
|
||||
.thread-comment__name { min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: .9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
|
||||
.thread-comment__badge { padding: 1px 6px; border-radius: 6px; background: var(--surface-selected); color: var(--action); font-size: .6875rem; white-space: nowrap; }
|
||||
.thread-comment__head time { flex-shrink: 0; color: var(--text-secondary); font-size: .875rem; }
|
||||
.thread-comment__head .thread-comment__more { width: 36px; min-width: 36px; height: 28px; min-height: 28px; margin: -4px -8px -4px auto; padding: 0; border: 0; background: transparent; color: var(--text-secondary); }
|
||||
.thread-comment__head .thread-comment__more svg { width: 20px; height: 20px; }
|
||||
.thread-comment__mention { display: inline-flex; align-items: center; gap: 3px; margin: 1px 0 0; padding: 0; border: 0; background: transparent; color: var(--action); font: inherit; font-size: .8125rem; cursor: pointer; }
|
||||
.thread-comment__mention svg { width: 14px; height: 14px; }
|
||||
.thread-comment__text { margin: 2px 0 0; font-size: .9375rem; line-height: 1.4375rem; white-space: pre-wrap; overflow-wrap: anywhere; }
|
||||
.thread-comment__actions { display: flex; align-items: center; gap: 4px; margin: 2px 0 0 -10px; color: var(--text-secondary); }
|
||||
.thread-comment__actions > button { min-height: 36px; min-width: 40px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: .8125rem; cursor: pointer; }
|
||||
.thread-comment__actions svg { width: 19px; height: 19px; }
|
||||
.thread-comment__actions span:empty { display: none; }
|
||||
|
||||
/* Ветка: ответы на ответы одной колонкой со сдвигом под аватар, от аватара родителя – линия с изгибом к каждому ответу. */
|
||||
.thread-replies { position: relative; margin-left: 46px; }
|
||||
.thread-replies > .thread-comment::before { content: ''; position: absolute; top: -10px; left: -29px; width: 22px; height: 24px; border-left: 2px solid var(--border-control); border-bottom: 2px solid var(--border-control); border-bottom-left-radius: 12px; pointer-events: none; }
|
||||
.thread-replies > :not(:last-child)::after { content: ''; position: absolute; top: 0; bottom: -10px; left: -29px; border-left: 2px solid var(--border-control); pointer-events: none; }
|
||||
.thread-group.has-replies > .thread-comment:first-child::after { content: ''; position: absolute; top: 40px; bottom: -12px; left: 17px; border-left: 2px solid var(--border-control); pointer-events: none; }
|
||||
.thread-replies:not(.is-expanded) > .is-collapsed { display: none; }
|
||||
.thread-more { position: relative; display: block; min-height: 36px; margin-top: 6px; padding: 0; border: 0; background: transparent; color: var(--text-secondary); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
|
||||
.thread-replies > .thread-more::before { content: ''; position: absolute; top: -6px; left: -29px; width: 22px; height: 24px; border-left: 2px solid var(--border-control); border-bottom: 2px solid var(--border-control); border-bottom-left-radius: 12px; }
|
||||
.thread-more:hover { color: var(--text-primary); }
|
||||
.thread-more--deeper { color: var(--action); font-weight: 500; }
|
||||
|
||||
.thread-quote { display: block; width: 100%; margin: 0 0 7px; padding: 5px 9px; border: 0; border-left: 2px solid var(--quote-line); border-radius: 0 6px 6px 0; background: var(--quote-bg); color: var(--text-secondary); font: inherit; font-size: .75rem; line-height: 1.125rem; text-align: left; cursor: pointer; }
|
||||
.thread-quote strong { display: block; color: var(--action); font-weight: 500; }
|
||||
|
||||
@@ -111,3 +111,28 @@
|
||||
|
||||
.channels-screen--channel, .channels-screen--thread { padding-bottom: 8px; }
|
||||
.channel-message-card--owner .message-attachment-media { height: auto; max-height: 70vh; object-fit: cover; }
|
||||
|
||||
/* Запись канала в раскладке Threads: аватар канала слева, название и возраст сверху, текст и действия – колонкой под названием. */
|
||||
.channels-screen .channel-message-card.channel-message-card--threads { padding: 14px 0 4px 48px; }
|
||||
.channel-message-card--threads .channel-message-head-row { flex-wrap: nowrap; min-height: 22px; }
|
||||
.channel-message-card--threads .channel-message-author-tile { gap: 0; min-height: 22px; }
|
||||
.channel-message-card--threads .avatar.channel-message-avatar { position: absolute; top: 14px; left: 0; }
|
||||
.channel-message-card--threads .avatar.channel-profile-avatar { width: 36px; height: 36px; min-width: 36px; min-height: 36px; border-radius: 10px; font-size: 15px; }
|
||||
.channel-message-card--threads .author-line-login { font-size: .9375rem; }
|
||||
.channel-message-card--threads .channel-message-author .channel-message-time::before { content: none; }
|
||||
.channel-message-card--threads .channel-message-time { font-size: .875rem; line-height: 1.25rem; }
|
||||
.channel-message-card--threads .channel-message-more { width: 36px; height: 28px; margin: -4px -8px -4px auto; display: inline-grid; place-items: center; }
|
||||
.channels-screen .channel-message-card--threads .channel-message-body { margin-top: 2px; font-size: .9375rem; line-height: 1.4375rem; }
|
||||
.channel-message-card--threads .message-attachment-carousel { width: 100%; margin: 8px 0 2px; }
|
||||
.channel-message-card--threads .message-attachment-carousel-viewport { border: 1px solid var(--border-subtle); border-radius: 12px; }
|
||||
.channel-message-card--threads .channel-message-actions { min-height: 40px; margin: 2px 0 0 -10px; }
|
||||
.channel-message-card--threads .channel-action-item { width: auto; min-width: 44px; min-height: 40px; padding: 0 12px 0 10px; gap: 5px; }
|
||||
.channel-message-card--threads .channel-action-icon svg, .channel-message-card--threads .channel-action-share .channel-action-icon svg { width: 21px; height: 21px; }
|
||||
.channel-message-card--threads .channel-action-counter { font-size: .8125rem; }
|
||||
/* Открытая запись в обсуждении: аватар в шапке, текст на всю ширину и крупнее. */
|
||||
.channels-screen .channel-message-card.channel-message-card--threads-focus { padding: 14px 0 4px; }
|
||||
.channel-message-card--threads-focus .channel-message-head-row { min-height: 40px; }
|
||||
.channel-message-card--threads-focus .channel-message-author-tile { gap: 10px; }
|
||||
.channel-message-card--threads-focus .avatar.channel-message-avatar { position: relative; top: auto; }
|
||||
.channels-screen .channel-message-card--threads-focus .channel-message-body { margin-top: 10px; font-size: 1.0625rem; line-height: 1.55; }
|
||||
.channel-message-card--threads-focus .channel-message-actions { margin-top: 6px; }
|
||||
|
||||
Reference in New Issue
Block a user