fix hover and maybe scroll idk

This commit is contained in:
7w1 committed 2026-03-11 12:32:09 -05:00
1 parent b4bff803ed
commit 88e9efa95c
2 files changed
+14 -14

No files matched your search

+12 -8
View File
@@ -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,
});
+2 -6
View File
@@ -2186,17 +2186,13 @@ export function RoomTimeline({
backPaginationJSX = (
<Box direction="Column">
{backwardStatus === 'loading' && (
<Box justifyContent="Center" style={{ padding: config.space.S300 }}>
<Box justifyContent="Center" style={{ height: '75vh', paddingTop: config.space.S600 }}>
<Spinner variant="Secondary" size="400" />
</Box>
)}
<div
ref={backwardStatus === 'idle' ? observeBackAnchor : undefined}
style={{
height: '100px',
visibility: 'hidden',
overflowAnchor: 'none',
}}
style={{ height: '1px', visibility: 'hidden', overflowAnchor: 'none' }}
/>
</Box>
);