mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-18 18:59:23 +00:00
make scrolling work in the call list
This commit is contained in:
@@ -69,6 +69,11 @@ body {
|
|||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
-webkit-tap-highlight-color: transparent;
|
-webkit-tap-highlight-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* This prohibits the view to scroll for pages smaller than 122px in width
|
||||||
|
we use this for mobile pip webviews */
|
||||||
|
.no-scroll-body {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,6 +132,16 @@ export const GroupCallView: FC<Props> = ({
|
|||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
// This CSS is the only way we could find to not make element call scroll for
|
||||||
|
// viewport sizes smaller than 122px width. (It is actually this exact number: 122px
|
||||||
|
// tested on different devices...)
|
||||||
|
useEffect(() => {
|
||||||
|
document.body.classList.add("no-scroll-body");
|
||||||
|
return (): void => {
|
||||||
|
document.body.classList.remove("no-scroll-body");
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
window.rtcSession = rtcSession;
|
window.rtcSession = rtcSession;
|
||||||
return (): void => {
|
return (): void => {
|
||||||
|
|||||||
Reference in New Issue
Block a user