From 2fb444eeb5fc36bf6f30f77819b0301ed26d31da Mon Sep 17 00:00:00 2001 From: "d.a.kolesov" Date: Wed, 1 Apr 2026 13:26:19 +0700 Subject: [PATCH] =?UTF-8?q?thread-view:=20=D0=BE=D1=87=D0=B5=D0=B2=D0=B8?= =?UTF-8?q?=D0=B4=D0=BD=D0=B0=D1=8F=20=D0=B2=D0=B8=D0=B7=D1=83=D0=B0=D0=BB?= =?UTF-8?q?=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F=20=D1=80=D0=B0=D1=81=D0=BA?= =?UTF-8?q?=D1=80=D1=8B=D1=82=D0=BE=D0=B3=D0=BE=20=D1=82=D1=80=D0=B5=D0=B4?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Вертикальная accent-линия слева соединяет заголовок с дочерними письмами - Заголовок раскрытого треда: accent-тинт фон + accent border - Дочерние письма со сдвигом вправо освобождают место под линию - Анимация раскрытия: fade + slide-down (Transition) Co-Authored-By: Claude Sonnet 4.6 --- .../src/components/messages/MessageList.vue | 95 ++++++++++++++----- .../components/messages/ThreadListItem.vue | 15 ++- 2 files changed, 86 insertions(+), 24 deletions(-) diff --git a/src/renderer/src/components/messages/MessageList.vue b/src/renderer/src/components/messages/MessageList.vue index b8fd61e..7c8af4c 100644 --- a/src/renderer/src/components/messages/MessageList.vue +++ b/src/renderer/src/components/messages/MessageList.vue @@ -280,7 +280,7 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
@@ -748,9 +754,37 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis to { transform: rotate(360deg); } } -/* Дочерние письма раскрытого треда */ +/* ── Группа треда ───────────────────────────────────────── */ +.thread-group { + position: relative; +} + +/* Вертикальная accent-линия — появляется только когда тред открыт */ +.thread-group--open::before { + content: ''; + position: absolute; + left: 13px; + top: 46px; /* ниже заголовка треда */ + bottom: 8px; + width: 2px; + border-radius: 2px; + background: linear-gradient( + to bottom, + var(--accent), + color-mix(in srgb, var(--accent) 30%, transparent) + ); + pointer-events: none; + z-index: 1; +} + +/* Контейнер дочерних писем */ +.thread-children { + overflow: hidden; +} + +/* Дочерние письма — отступ, чтобы освободить место для линии */ :deep(.thread-child-item) { - margin-left: 12px; + margin-left: 20px; margin-top: 0; border-radius: 0; border-top-color: transparent; @@ -759,5 +793,22 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis :deep(.thread-child-item:last-child) { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; + margin-bottom: 2px; +} + +/* ── Анимация раскрытия ─────────────────────────────────── */ +.thread-expand-enter-active { + transition: opacity 180ms ease, transform 220ms cubic-bezier(0.34, 1.1, 0.64, 1); +} +.thread-expand-leave-active { + transition: opacity 140ms ease, transform 160ms ease; +} +.thread-expand-enter-from { + opacity: 0; + transform: translateY(-6px); +} +.thread-expand-leave-to { + opacity: 0; + transform: translateY(-4px); } diff --git a/src/renderer/src/components/messages/ThreadListItem.vue b/src/renderer/src/components/messages/ThreadListItem.vue index 650ef3c..8a055f0 100644 --- a/src/renderer/src/components/messages/ThreadListItem.vue +++ b/src/renderer/src/components/messages/ThreadListItem.vue @@ -276,10 +276,21 @@ const snippet = computed(() => props.thread.latest.snippet || '') color: var(--accent); } -/* Раскрытый тред — убираем нижний border-radius чтобы слиться с дочерними письмами */ +/* Раскрытый тред */ .thread-card.expanded { border-bottom-left-radius: 0; border-bottom-right-radius: 0; - border-bottom-color: transparent; + border-color: color-mix(in srgb, var(--accent) 30%, rgba(255,255,255,0.08)); + border-bottom-color: color-mix(in srgb, var(--accent) 15%, transparent); + background: + linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 100%), + rgba(255, 255, 255, 0.04); + box-shadow: + inset 0 1px 0 color-mix(in srgb, var(--accent) 20%, rgba(255,255,255,0.08)), + 0 2px 12px rgba(0, 0, 0, 0.2); +} + +.thread-card.expanded .thread-item { + background: transparent; }