668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 1 | <script lang="ts"> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 2 | import { onDestroy, onMount, tick } from 'svelte'; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 3 | import { eventContextAfter, eventContextBefore } from './api'; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 4 | import EmojiText from './EmojiText.svelte'; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 5 | import MessageRow from './MessageRow.svelte'; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 6 | import { formatDay } from './format'; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 7 | import { TimelineViewport } from './timeline-viewport'; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 8 | import type { EventContext, TimelineEvent, TimelineItem } from './types'; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 9 | |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 10 | export let context: EventContext; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 11 | export let roomId: string; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 12 | export let eventId: string; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 13 | export let roomName: string; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 14 | export let self: string | null = null; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 15 | export let canPaginate = true; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 16 | export let onClose: () => void; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 17 | export let onLive: (roomId: string) => void; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 18 | export let closeLabel = 'Back to mentions'; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 19 | |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 20 | let rows: TimelineItem[] = []; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 21 | let beforeToken: string | null = null; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 22 | let afterToken: string | null = null; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 23 | let beforeEnded = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 24 | let afterEnded = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 25 | let beforeExtended = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 26 | let afterExtended = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 27 | let beforeBusy = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 28 | let afterBusy = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 29 | let error = ''; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 30 | let list: HTMLDivElement; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 31 | let contentNode: HTMLDivElement; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 32 | let backButton: HTMLButtonElement; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 33 | let viewport: TimelineViewport | null = null; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 34 | let observer: ResizeObserver | null = null; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 35 | let generation = 0; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 36 | let mounted = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 37 | let alive = true; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 38 | let identity = ''; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 39 | let centered = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 40 | |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 41 | const stable = (event: TimelineEvent) => event.event_id || event.item_id; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 42 | const key = (item: TimelineItem) => item.kind === 'event' |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 43 | ? `event-${stable(item.event)}` |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 44 | : item.kind === 'day' ? `day-${item.timestamp_ms}` : item.kind; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 45 | function normalize(items: TimelineItem[]): TimelineItem[] { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 46 | const seen = new Set<string>(); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 47 | const result: TimelineItem[] = []; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 48 | for (const item of items) { |
43c2cc753052 | atagen | 2026-10-25 07:50 UTC | 49 | if (item.kind === 'readMarker' || item.kind === 'start' || item.kind === 'unknown' || item.kind === 'historyGap') continue; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 50 | if (item.kind === 'event') { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 51 | const eventKey = stable(item.event); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 52 | if (seen.has(eventKey)) continue; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 53 | seen.add(eventKey); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 54 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 55 | result.push(item); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 56 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 57 | return result; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 58 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 59 | function merge(base: TimelineItem[], incoming: TimelineItem[]): TimelineItem[] { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 60 | const events = new Map<string, TimelineItem>(); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 61 | const days = new Map<number, TimelineItem>(); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 62 | for (const item of [...base, ...incoming]) { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 63 | if (item.kind === 'event') events.set(stable(item.event), item); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 64 | else if (item.kind === 'day') days.set(item.timestamp_ms, item); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 65 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 66 | return [...events.values(), ...days.values()].sort((a, b) => timestamp(a) - timestamp(b)); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 67 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 68 | function timestamp(item: TimelineItem): number { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 69 | if (item.kind === 'event') return item.event.timestamp_ms; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 70 | if (item.kind === 'day') return item.timestamp_ms; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 71 | return 0; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 72 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 73 | function refresh(next: EventContext): void { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 74 | const nextIdentity = `${roomId}\u0000${eventId}`; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 75 | if (identity !== nextIdentity) { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 76 | generation++; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 77 | identity = nextIdentity; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 78 | rows = []; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 79 | beforeToken = null; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 80 | afterToken = null; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 81 | beforeEnded = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 82 | afterEnded = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 83 | beforeExtended = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 84 | afterExtended = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 85 | beforeBusy = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 86 | afterBusy = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 87 | error = ''; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 88 | centered = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 89 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 90 | const request = generation; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 91 | viewport?.capture(); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 92 | const initial = normalize([...next.events_before, ...(next.event ? [next.event] : []), ...next.events_after]); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 93 | rows = rows.length ? merge(rows, initial) : initial; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 94 | if (!beforeExtended) { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 95 | beforeToken = next.start_token; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 96 | beforeEnded = !beforeToken; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 97 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 98 | if (!afterExtended) { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 99 | afterToken = next.end_token; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 100 | afterEnded = !afterToken; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 101 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 102 | tick().then(() => { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 103 | if (!alive || request !== generation) return; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 104 | viewport?.restore(); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 105 | }); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 106 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 107 | $: if (context) { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 108 | roomId; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 109 | eventId; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 110 | refresh(context); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 111 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 112 | $: if (mounted && list) { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 113 | context; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 114 | const anchorRoom = roomId; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 115 | const anchorEvent = eventId; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 116 | tick().then(() => { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 117 | if (!alive || anchorRoom !== roomId || anchorEvent !== eventId || !context) return; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 118 | if (!centered) { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 119 | const target = list.querySelector<HTMLElement>('[data-target="true"]'); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 120 | target?.scrollIntoView({ block: 'center', behavior: 'auto' }); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 121 | centered = true; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 122 | viewport?.capture(); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 123 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 124 | }); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 125 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 126 | |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 127 | async function load(direction: 'before' | 'after'): Promise<void> { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 128 | const token = direction === 'before' ? beforeToken : afterToken; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 129 | if (!token || !canPaginate || (direction === 'before' ? beforeBusy : afterBusy)) return; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 130 | const request = generation; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 131 | if (direction === 'before') beforeBusy = true; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 132 | else afterBusy = true; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 133 | error = ''; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 134 | try { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 135 | const requestedRoom = roomId; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 136 | const requestedEvent = eventId; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 137 | const page = direction === 'before' |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 138 | ? await eventContextBefore(requestedRoom, requestedEvent, token, 20) |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 139 | : await eventContextAfter(requestedRoom, requestedEvent, token, 20); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 140 | if (!alive || request !== generation || requestedRoom !== roomId || requestedEvent !== eventId) return; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 141 | viewport?.capture(); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 142 | rows = merge(rows, page.events); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 143 | if (direction === 'before') { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 144 | beforeExtended = true; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 145 | beforeToken = page.next_token; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 146 | beforeEnded = page.end_reached || !page.next_token; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 147 | } else { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 148 | afterExtended = true; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 149 | afterToken = page.next_token; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 150 | afterEnded = page.end_reached || !page.next_token; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 151 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 152 | await tick(); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 153 | if (alive && request === generation) viewport?.restore(); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 154 | } catch (cause) { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 155 | if (alive && request === generation) error = cause instanceof Error ? cause.message : 'Could not load messages'; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 156 | } finally { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 157 | if (alive && request === generation) { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 158 | if (direction === 'before') beforeBusy = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 159 | else afterBusy = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 160 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 161 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 162 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 163 | |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 164 | function handleScroll(): void { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 165 | if (!viewport?.consumeScroll()) viewport?.capture(); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 166 | } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 167 | onDestroy(() => { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 168 | alive = false; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 169 | generation++; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 170 | observer?.disconnect(); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 171 | viewport?.releaseScroll(); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 172 | }); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 173 | onMount(() => { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 174 | mounted = true; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 175 | tick().then(() => { |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 176 | if (!alive || !list) return; |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 177 | viewport = new TimelineViewport(list, roomId); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 178 | observer = new ResizeObserver(() => viewport?.restore()); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 179 | if (contentNode) observer.observe(contentNode); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 180 | backButton?.focus(); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 181 | }); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 182 | }); |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 183 | </script> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 184 | |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 185 | <section class="context-timeline"> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 186 | <header> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 187 | <button bind:this={backButton} onclick={onClose}><EmojiText text={closeLabel} /></button> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 188 | <strong><EmojiText text={roomName} /></strong> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 189 | <button disabled={!canPaginate} onclick={() => onLive(roomId)}>Go to current messages</button> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 190 | </header> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 191 | {#if error}<div class="error" role="alert"><EmojiText text={error} /></div>{/if} |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 192 | <button class="page-control" disabled={!beforeToken || beforeEnded || beforeBusy || !canPaginate} onclick={() => load('before')}> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 193 | {beforeBusy ? 'Loading…' : 'Load earlier messages'} |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 194 | </button> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 195 | <div class="messages" bind:this={list} onscroll={handleScroll}> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 196 | <div class="content" bind:this={contentNode}> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 197 | {#each rows as item (key(item))} |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 198 | {#if item.kind === 'day'} |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 199 | <div class="day"><span><EmojiText text={formatDay(item.timestamp_ms)} /></span></div> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 200 | {:else if item.kind === 'event'} |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 201 | <div class:mentioned={item.event.event_id === eventId} aria-label={item.event.event_id === eventId ? 'Mentioned message' : undefined} data-target={item.event.event_id === eventId ? 'true' : undefined}> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 202 | <MessageRow itemId={stable(item.event)} event={item.event} showSender={true} reacting={false} onReact={() => {}} readOnly={true} showSent={false} {self} senderAvatar={item.event.sender.avatar} /> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 203 | </div> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 204 | {/if} |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 205 | {/each} |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 206 | </div> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 207 | </div> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 208 | <button class="page-control" disabled={!afterToken || afterEnded || afterBusy || !canPaginate} onclick={() => load('after')}> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 209 | {afterBusy ? 'Loading…' : 'Load later messages'} |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 210 | </button> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 211 | </section> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 212 | |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 213 | <style> |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 214 | .context-timeline { display:flex; flex-direction:column; min-width:0; min-height:0; height:100%; } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 215 | header { display:flex; align-items:center; gap:.6rem; padding:.5rem; border-bottom:1px solid var(--border); flex-wrap:wrap; } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 216 | header strong { flex:1; min-width:0; overflow-wrap:anywhere; } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 217 | button { color:var(--text); background:var(--panel); border:1px solid var(--border); border-radius:.4rem; padding:.4rem .65rem; cursor:pointer; } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 218 | button:disabled { opacity:.55; cursor:default; } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 219 | .messages { flex:1; min-height:0; overflow:auto; overflow-anchor:none; padding:.5rem; } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 220 | .content { min-width:0; } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 221 | .mentioned { outline:2px solid var(--accent); border-radius:.5rem; } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 222 | .day { display:flex; align-items:center; gap:.6rem; color:var(--muted); font-size:.8rem; margin:.75rem 0; } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 223 | .day::before,.day::after { content:''; height:1px; background:var(--border); flex:1; } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 224 | .page-control { align-self:center; margin:.4rem; } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 225 | .error { color:var(--danger); padding:.5rem; overflow-wrap:anywhere; } |
668ab5c30531 | atagen | 2026-10-25 03:13 UTC | 226 | </style> |