Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/app/features/room/RoomTimeline.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,26 @@ export type TimelineFloatVariants = RecipeVariants<typeof TimelineFloat>;

export const messageList = style({
display: 'flex',
flexDirection: 'column',
flexDirection: 'column-reverse',
width: '100%',
overflowAnchor: 'none',
});

globalStyle(`body ${messageList} > *`, {
overflowAnchor: 'auto',
});

globalStyle(`body ${messageList} [data-message-id]`, {
transition: 'background-color 0.1s ease-in-out !important',
position: 'relative',
zIndex: 1,
});

globalStyle(`body ${messageList} [data-message-id]:hover`, {
backgroundColor: 'var(--sable-surface-container-hover) !important',
zIndex: 2,
});

globalStyle(`body ${messageList} [data-message-id]:focus-within`, {
zIndex: 10,
});
Loading
Loading