diff --git a/src/app/features/room/RoomTimeline.css.ts b/src/app/features/room/RoomTimeline.css.ts index 8db3a10a..fd60630f 100644 --- a/src/app/features/room/RoomTimeline.css.ts +++ b/src/app/features/room/RoomTimeline.css.ts @@ -37,17 +37,21 @@ export const messageList = style({ overflowAnchor: 'none', }); -globalStyle(`body ${messageList} [data-message-id]`, { +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, body ${messageList} [data-message-id]:focus-within`, - { - backgroundColor: 'var(--sable-surface-container-hover) !important', - zIndex: 10, - } -); +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, +}); diff --git a/src/app/features/room/RoomTimeline.tsx b/src/app/features/room/RoomTimeline.tsx index b6f5eed4..355bfe36 100644 --- a/src/app/features/room/RoomTimeline.tsx +++ b/src/app/features/room/RoomTimeline.tsx @@ -2186,17 +2186,13 @@ export function RoomTimeline({ backPaginationJSX = ( {backwardStatus === 'loading' && ( - + )}
);