Skip to content

langleyd/timeline styling - #94

Merged
dbkr merged 5 commits into
dbkr/reactionsfrom
langleyd/timeline-styling
Oct 15, 2026
Merged

dbkr merged 5 commits into
dbkr/reactionsfrom
langleyd/timeline-styling

Conversation

@langleyd

@langleyd langleyd commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Brings Aurora's timeline in line with element-web's labs timeline. Both use the same shared EventTileView; the gaps were app CSS and a few things Aurora drew itself.

  • compound-design-tokens 6 → 11.2 (fixes the missing read-marker line)
  • 18px row inset, 30px avatars, sender via DisambiguatedProfileView with username colours, HH:MM timestamps
  • "Today" / "Yesterday" / weekday date separators
  • Big emoji, plus basic code/quote/list styling for message bodies
  • Replace three compound tokens that don't exist, used in dialogs

The version shared-components is built against. 6.x lacks
--cpd-color-border-accent-primary, so the read marker's line didn't draw.
Today, yesterday, the weekday within the last week, otherwise the full
date, as element-web's DateSeparatorViewModel does.
- Inset rows by 18px rather than 8px, as element-web does.
- 30px avatars rather than 32px.
- Show the sender with DisambiguatedProfileView: 15px semibold in their
  username colour, with their user ID when the name is ambiguous. Adds the
  mx_Username_color1..6 rules element-web keeps in its own CSS.
- Show times as HH:MM rather than with seconds, and drop the rule that
  pushed the timestamp down.
- Use element-web's body text settings (15px, letter spacing,
  antialiasing) for the timeline.
Message bodies get mx_EventTile_body (plus markdown-body for HTML, or
mx_EventTile_bigEmoji for emoji-only messages, detected the way
element-web does), with a stopgap stylesheet for big emoji, code,
quotes, lists and headings until shared-components styles these itself.
Three variables aren't defined by compound-design-tokens or
compound-web, so the rules using them did nothing:

- --cpd-font-line-height-medium: use --cpd-font-line-height-tight, the
  line height compound's heading-md fonts use.
- --cpd-shadow-dialog: compound has no shadow tokens, so use the shadow
  compound-web gives its floating surfaces.
- --cpd-radius-md: use --cpd-space-3x, the radius of compound's
  VisualList, which element-web uses for the same reset-identity info.
@langleyd
langleyd added this pull request to stack #82 October 15, 2026 14:51
@langleyd
langleyd marked this pull request as ready for review October 15, 2026 14:52
@github-actions

Copy link
Copy Markdown

🚀 Deployed on https://pr94--element-aurora.netlify.app

@github-actions
github-actions Bot temporarily deployed to pull request October 15, 2026 14:52 Inactive
@dbkr
dbkr merged commit 4c0fd94 into main Oct 15, 2026
2 checks passed

This branch was previously deployed

1 inactive deployment
pull request — b7b9bf68 Deployed Oct 15, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants