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; }