fix hover and maybe scroll idk
This commit is contained in:
2 files changed
+14
-14
No files matched your search
@@ -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,
|
||||
});
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user