diff --git a/src/routes/logs/+page.svelte b/src/routes/logs/+page.svelte index ace6c8b..9c61f22 100644 --- a/src/routes/logs/+page.svelte +++ b/src/routes/logs/+page.svelte @@ -1115,12 +1115,16 @@
{@const msg = filteredChatLogs[index]} {@const msgId = getMessageId(msg)} + {@const dayKey = dayjs(msg.timestamp).format("YYYY-MM-DD")} + {@const prevDayKey = index > 0 ? dayjs(filteredChatLogs[index - 1].timestamp).format("YYYY-MM-DD") : null} + {@const isNewDay = index > 0 && prevDayKey !== dayKey} {@const isHashMatch = msgId === page.url.hash.slice(1)} {@const isJumpMatch = isJumpSearching && !isHashMatch && jumpHighlights?.has(msgId)} {@const isHighlight = Boolean(msg.tags["system-msg"]) || msg.tags["bits"] || msg.tags["msg-id"] === "announcement"}