diff --git a/src/app/components/message/content/EventContent.tsx b/src/app/components/message/content/EventContent.tsx index 01f49390..9691b719 100644 --- a/src/app/components/message/content/EventContent.tsx +++ b/src/app/components/message/content/EventContent.tsx @@ -27,7 +27,7 @@ export function EventContent({ }: EventContentProps) { const compact = useScreenSizeContext() === ScreenSize.Mobile; const rootRef = useRef(null); - const timeRef = useRef(null); + const timeRef = useRef(null); const railRef = useRef(null); const dotRef = useRef(null); const bodyRef = useRef(null); @@ -49,17 +49,15 @@ export function EventContent({ } // Sysline = thin one-line state-event row that lives ON the rail. - // Same 3-track grid as message rows (StreamRoot) — track 1 timestamp, - // track 2 dot column, track 3 body — so the dot's X aligns with the - // dots above and below it. + // Same 2-track grid as message rows (StreamRoot) — track 1 dot column, + // track 2 body — so the dot's X aligns with the dots above and below it. + // The timestamp trails the body (content → time), mirroring the message + // header's nick → time order now that the dot leads the row. return (
-
- {time} -
{content}
+ {time && ( + + {time} + + )}
); diff --git a/src/app/components/message/layout/Stream.tsx b/src/app/components/message/layout/Stream.tsx index 9a8ec183..32c904d9 100644 --- a/src/app/components/message/layout/Stream.tsx +++ b/src/app/components/message/layout/Stream.tsx @@ -4,7 +4,6 @@ import { as, toRem } from 'folds'; import * as css from './layout.css'; import { useStreamLayoutDebug } from './streamDebug'; import { ScreenSize, useScreenSizeContext } from '../../../hooks/useScreenSize'; -import { Time } from '../Time'; // Day-divider rows fall back to this `S400` MessageBase spacing variant // (see RoomTimeline.renderDayDivider). Message rows force collapse=true @@ -13,12 +12,6 @@ import { Time } from '../Time'; // over the tighter gap stays hidden by the dot halo. export const STREAM_MESSAGE_SPACING = '400' as const; -// Sample timestamp used by the day-divider's invisible track-1 placeholder. -// Any ts works — `