Repository navigation
langleyd/timeline styling - #94
Merged
Merged
Conversation
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
marked this pull request as ready for review
October 15, 2026 14:52
|
🚀 Deployed on https://pr94--element-aurora.netlify.app |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.DisambiguatedProfileViewwith username colours, HH:MM timestamps